Show / Hide Table of Contents

Class PresentationFrameworkCollection<T>

Provides a common collection class for Silverlight collections.

Inheritance
System.Object
DependencyObject
PresentationFrameworkCollection<T>
AssemblyPartCollection
ColumnDefinitionCollection
ItemCollection
RowDefinitionCollection
UIElementCollection
TextElementCollection<T>
ExternalPartCollection
IconCollection
StrokeCollection
StylusPointCollection
TouchPointCollection
BooleanKeyFrameCollection
ByteKeyFrameCollection
CharKeyFrameCollection
ColorKeyFrameCollection
DecimalKeyFrameCollection
DoubleKeyFrameCollection
Int16KeyFrameCollection
Int32KeyFrameCollection
Int64KeyFrameCollection
MatrixKeyFrameCollection
ObjectKeyFrameCollection
PointKeyFrameCollection
RectKeyFrameCollection
SingleKeyFrameCollection
SizeKeyFrameCollection
StringKeyFrameCollection
ThicknessKeyFrameCollection
TimelineCollection
VectorKeyFrameCollection
DoubleCollection
GeometryCollection
GradientStopCollection
PathFigureCollection
PathSegmentCollection
PointCollection
TimelineMarkerCollection
TransformCollection
SetterBaseCollection
TriggerActionCollection
TriggerCollection
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public abstract class PresentationFrameworkCollection<T> : DependencyObject, IDependencyObject, IList<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
Name Description
T

Type constraint for type safety of the constrained collection implementation.

Fields

| Improve this Doc View Source

CountProperty

Identifies the Count dependency property.

Declaration
public static readonly DependencyProperty CountProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Count

Gets the number of elements contained in the PresentationFrameworkCollection<T>.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsFixedSize

Gets a value indicating whether the PresentationFrameworkCollection<T> has a fixed size.

Declaration
public bool IsFixedSize { get; }
Property Value
Type Description
System.Boolean

true if the PresentationFrameworkCollection<T> has a fixed size; otherwise, false.

| Improve this Doc View Source

IsReadOnly

Gets a value indicating whether the PresentationFrameworkCollection<T> is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean

true if the PresentationFrameworkCollection<T> is read-only; otherwise, false.

| Improve this Doc View Source

IsSynchronized

Gets a value indicating whether access to the PresentationFrameworkCollection<T> is synchronized (thread safe).

Declaration
public bool IsSynchronized { get; }
Property Value
Type Description
System.Boolean

true if access to the PresentationFrameworkCollection<T> is synchronized (thread safe); otherwise, false.

| Improve this Doc View Source

Item[Int32]

Gets or sets the element at the specified index.

Declaration
public T this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element to get or set.

Property Value
Type Description
T

The element at the specified index.

| Improve this Doc View Source

SyncRoot

Gets an object that can be used to synchronize access to the PresentationFrameworkCollection<T>.

Declaration
public object SyncRoot { get; }
Property Value
Type Description
System.Object

An object that can be used to synchronize access to the PresentationFrameworkCollection<T>.

Methods

| Improve this Doc View Source

Add(T)

Adds an item to the PresentationFrameworkCollection<T>.

Declaration
public void Add(T value)
Parameters
Type Name Description
T value

The object to add.

| Improve this Doc View Source

Clear()

Removes all items from the PresentationFrameworkCollection<T>.

Declaration
public void Clear()
| Improve this Doc View Source

Contains(T)

Determines whether the PresentationFrameworkCollection<T> contains a specific value.

Declaration
public bool Contains(T value)
Parameters
Type Name Description
T value

The object to locate in the PresentationFrameworkCollection<T>.

Returns
Type Description
System.Boolean

true if the object is found in the PresentationFrameworkCollection<T>; otherwise, false.

| Improve this Doc View Source

CopyTo(T[], Int32)

Copies the elements of the PresentationFrameworkCollection<T> to an System.Array, starting at a particular System.Array index.

Declaration
public void CopyTo(T[] array, int index)
Parameters
Type Name Description
T[] array

The one-dimensional System.Array that is the destination of the elements copied from the PresentationFrameworkCollection<T>. The System.Array must have zero-based indexing.

System.Int32 index

The zero-based index in array at which copying begins.

| Improve this Doc View Source

CopyTo(Array, Int32)

Copies the elements of the PresentationFrameworkCollection<T> to an System.Array, starting at a particular System.Array index.

Declaration
public void CopyTo(Array array, int index)
Parameters
Type Name Description
System.Array array

The one-dimensional System.Array that is the destination of the elements copied from the PresentationFrameworkCollection<T>. The System.Array must have zero-based indexing.

System.Int32 index

The zero-based index in array at which copying begins.

| Improve this Doc View Source

GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

An System.Collections.IEnumerator object that can be used to iterate through the collection.

| Improve this Doc View Source

IndexOf(T)

Determines the index of a specific item in the PresentationFrameworkCollection<T>.

Declaration
public int IndexOf(T value)
Parameters
Type Name Description
T value

The object to locate in the PresentationFrameworkCollection<T>.

Returns
Type Description
System.Int32

The index of value if found in the list; otherwise, an exception.

Exceptions
Type Condition
System.ArgumentException

The object was not found in the list.

| Improve this Doc View Source

Insert(Int32, T)

Inserts an item to the PresentationFrameworkCollection<T> at the specified index.

Declaration
public void Insert(int index, T value)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which value should be inserted.

T value

The object to insert into the PresentationFrameworkCollection<T>.

| Improve this Doc View Source

Remove(T)

Removes the first occurrence of a specific object from the PresentationFrameworkCollection<T>.

Declaration
public bool Remove(T value)
Parameters
Type Name Description
T value

The object to remove from the PresentationFrameworkCollection<T>.

Returns
Type Description
System.Boolean

true if an object was removed; otherwise, false.

| Improve this Doc View Source

RemoveAt(Int32)

Removes the item at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the item to remove.

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator
| Improve this Doc View Source

IList.Add(Object)

Declaration
int IList.Add(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Int32
| Improve this Doc View Source

IList.Contains(Object)

Declaration
bool IList.Contains(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IList.IndexOf(Object)

Declaration
int IList.IndexOf(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Int32
| Improve this Doc View Source

IList.Insert(Int32, Object)

Declaration
void IList.Insert(int index, object value)
Parameters
Type Name Description
System.Int32 index
System.Object value
| Improve this Doc View Source

IList.Item[Int32]

Declaration
object IList.this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
System.Object
| Improve this Doc View Source

IList.Remove(Object)

Declaration
void IList.Remove(object value)
Parameters
Type Name Description
System.Object value
| Improve this Doc View Source

IList.RemoveAt(Int32)

Declaration
void IList.RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source