Class Model3DCollection
Represents an ordered collection of Model3D objects.
Inherited Members
Namespace: Telerik.Windows.Media.Media3D
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public sealed class Model3DCollection : Freezable, INotifyPropertyChanged, IList<Model3D>, ICollection<Model3D>, IEnumerable<Model3D>, IEnumerable
Constructors
Model3DCollection()
Initializes a new instance of the Model3DCollection class.
Declaration
public Model3DCollection()
Model3DCollection(IEnumerable<Model3D>)
Initializes a new instance of the Model3DCollection class using the specified collection.
Declaration
public Model3DCollection(IEnumerable<Model3D> collection)
Parameters
System.Collections.Generic.IEnumerable<Model3D>
collection
Collection with which to instantiate the Model3DCollection. |
Model3DCollection(Int32)
Initializes a new instance of the Model3DCollection class with the specified capacity.
Declaration
public Model3DCollection(int capacity)
Parameters
System.Int32
capacity
Integer that specifies the capacity of the collection. |
Properties
Count
Gets the number of Model3D objects contained in the Model3DCollection.
Declaration
public int Count { get; }
Property Value
System.Int32
|
Item[Int32]
Gets or sets the Model3D at the specified zero-based index.
Declaration
public Model3D this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the Model3D object to get or set. |
Property Value
Model3D
The item at the specified index. |
Methods
Add(Model3D)
Adds a Model3D object to the end of the Model3DCollection.
Declaration
public void Add(Model3D item)
Parameters
Model3D
item
Item to add to the end of this collection. |
Clear()
Removes all the items from this Model3DCollection.
Declaration
public void Clear()
Contains(Model3D)
Determines whether the specified Model3D is in this Model3DCollection.
Declaration
public bool Contains(Model3D item)
Parameters
Model3D
item
The item to locate in this collection. |
Returns
System.Boolean
true if value, the specified Model3D, is in this Model3DCollection; otherwise, false. |
CopyTo(Model3D[], Int32)
Copies the items of this Model3DCollection, starting with the specified index value, into an array of Model3D objects.
Declaration
public void CopyTo(Model3D[] array, int arrayIndex)
Parameters
Model3D[]
array
The array that is the destination of the items copied from this Model3DCollection. |
System.Int32
arrayIndex
The index at which copying begins. |
GetEnumerator()
Returns an enumerator that can iterate through the collection.
Declaration
public IEnumerator<Model3D> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Model3D>
An enumerator that can iterate through the collection. |
IndexOf(Model3D)
Gets the index position of the first occurrence of the specified Model3D.
Declaration
public int IndexOf(Model3D item)
Parameters
Model3D
item
The Model3D to search for. |
Returns
System.Int32
The index position of the specified Model3D. |
Insert(Int32, Model3D)
Inserts a Model3D into this Model3DCollection at the specified index position.
Declaration
public void Insert(int index, Model3D item)
Parameters
System.Int32
index
The index position at which to insert the specified Model3D. |
Model3D
item
The Model3D to insert. |
Remove(Model3D)
Removes the first occurrence of the specified Model3D from the Model3DCollection.
Declaration
public bool Remove(Model3D item)
Parameters
Model3D
item
The Model3D to remove from this collection. |
Returns
System.Boolean
|
RemoveAt(Int32)
Removes the Model3D at the specified index position from the Model3DCollection.
Declaration
public void RemoveAt(int index)
Parameters
System.Int32
index
The index position of the Model3D to remove. |