Vector3DCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Collection of Vector3D objects.
public ref class Vector3DCollection sealed : System::Windows::Freezable, IFormattable, System::Collections::Generic::ICollection<System::Windows::Media::Media3D::Vector3D>, System::Collections::Generic::IEnumerable<System::Windows::Media::Media3D::Vector3D>, System::Collections::Generic::IList<System::Windows::Media::Media3D::Vector3D>, System::Collections::IList
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Vector3DCollectionConverter))]
public sealed class Vector3DCollection : System.Windows.Freezable, IFormattable, System.Collections.Generic.ICollection<System.Windows.Media.Media3D.Vector3D>, System.Collections.Generic.IEnumerable<System.Windows.Media.Media3D.Vector3D>, System.Collections.Generic.IList<System.Windows.Media.Media3D.Vector3D>, System.Collections.IList
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Vector3DCollectionConverter))>]
type Vector3DCollection = class
inherit Freezable
interface ICollection<Vector3D>
interface seq<Vector3D>
interface IEnumerable
interface IList<Vector3D>
interface ICollection
interface IList
interface IFormattable
Public NotInheritable Class Vector3DCollection
Inherits Freezable
Implements ICollection(Of Vector3D), IEnumerable(Of Vector3D), IFormattable, IList, IList(Of Vector3D)
- Inheritance
- Attributes
- Implements
Remarks
XAML Attribute Usage
<object property="oneOrMoreVector3Ds"/>
XAML Values
oneOrMoreVector3Ds One or more Vector3D objects, with each set of values delimited by commas and/or one or more spaces:
For example, "0,0,5 100,100,150 200,100,75" and "0,0,5,100,100,150,200,100,75" are both valid.
oneOrMoreVector3DObjectElements One or more Vector3D objects, declared using object element syntax.
XAML Implicit Collection Usage
<object>
<object.property>
oneOrMoreVector3DObjectElements
</object.property>
</object>
Constructors
| Name | Description |
|---|---|
| Vector3DCollection() |
Initializes a new instance of the Vector3DCollection class. |
| Vector3DCollection(IEnumerable<Vector3D>) |
Initializes a new instance of the Vector3DCollection class using the specified collection. |
| Vector3DCollection(Int32) |
Initializes a new instance of the Vector3DCollection class with the specified capacity. |
Properties
| Name | Description |
|---|---|
| CanFreeze |
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable) |
| Count |
Gets the number of Vector3D objects contained in the Vector3DCollection. |
| DependencyObjectType |
Gets the DependencyObjectType that wraps the CLR type of this instance. (Inherited from DependencyObject) |
| Dispatcher |
Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject) |
| IsFrozen |
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable) |
| IsSealed |
Gets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject) |
| Item[Int32] |
Gets or sets the Vector3D at the specified zero-based index. |
Methods
| Name | Description |
|---|---|
| Add(Vector3D) |
Adds a Vector3D to the collection. |
| CheckAccess() |
Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject) |
| Clear() |
Removes all elements from the collection. |
| ClearValue(DependencyProperty) |
Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject) |
| ClearValue(DependencyPropertyKey) |
Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject) |
| Clone() |
Creates a modifiable clone of this Vector3DCollection, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. |
| CloneCore(Freezable) |
Makes the instance a clone (deep copy) of the specified Freezable using base (non-animated) property values. (Inherited from Freezable) |
| CloneCurrentValue() |
Creates a modifiable clone of this Vector3DCollection object, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are. |
| CloneCurrentValueCore(Freezable) |
Makes the instance a modifiable clone (deep copy) of the specified Freezable using current property values. (Inherited from Freezable) |
| CoerceValue(DependencyProperty) |
Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject) |
| Contains(Vector3D) |
Determines whether the collection contains the specified element. |
| CopyTo(Vector3D[], Int32) |
Copies the elements of the collection into the specified array, starting at the specified index position. |
| CreateInstance() |
Initializes a new instance of the Freezable class. (Inherited from Freezable) |
| CreateInstanceCore() |
When implemented in a derived class, creates a new instance of the Freezable derived class. (Inherited from Freezable) |
| Equals(Object) |
Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject) |
| Freeze() |
Makes the current object unmodifiable and sets its IsFrozen property to |
| FreezeCore(Boolean) |
Makes the Freezable object unmodifiable or tests whether it can be made unmodifiable. (Inherited from Freezable) |
| GetAsFrozen() |
Creates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from Freezable) |
| GetAsFrozenCore(Freezable) |
Makes the instance a frozen clone of the specified Freezable using base (non-animated) property values. (Inherited from Freezable) |
| GetCurrentValueAsFrozen() |
Creates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from Freezable) |
| GetCurrentValueAsFrozenCore(Freezable) |
Makes the current instance a frozen clone of the specified Freezable. If the object has animated dependency properties, their current animated values are copied. (Inherited from Freezable) |
| GetEnumerator() |
Returns an enumerator that can iterate through the collection. |
| GetHashCode() |
Gets a hash code for this DependencyObject. (Inherited from DependencyObject) |
| GetLocalValueEnumerator() |
Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject) |
| GetValue(DependencyProperty) |
Returns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject) |
| IndexOf(Vector3D) |
Gets the index position of the first occurrence of the specified Vector3D. |
| Insert(Int32, Vector3D) |
Inserts a Vector3D object into this Vector3DCollection at the specified index position. |
| InvalidateProperty(DependencyProperty) |
Re-evaluates the effective value for the specified dependency property. (Inherited from DependencyObject) |
| OnChanged() |
Called when the current Freezable object is modified. (Inherited from Freezable) |
| OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty) |
This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. (Inherited from Freezable) |
| OnFreezablePropertyChanged(DependencyObject, DependencyObject) |
Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set. (Inherited from Freezable) |
| OnPropertyChanged(DependencyPropertyChangedEventArgs) |
Overrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable. (Inherited from Freezable) |
| Parse(String) |
Converts a String representation of a collection of Vector3D objects into an equivalent Vector3DCollection. |
| ReadLocalValue(DependencyProperty) |
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject) |
| ReadPreamble() |
Ensures that the Freezable is being accessed from a valid thread. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties. (Inherited from Freezable) |
| Remove(Vector3D) |
Removes the first occurrence of the specified Vector3D from the Vector3DCollection. |
| RemoveAt(Int32) |
Removes the Vector3D at the specified index position from the Vector3DCollection. |
| SetCurrentValue(DependencyProperty, Object) |
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject) |
| SetValue(DependencyProperty, Object) |
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject) |
| SetValue(DependencyPropertyKey, Object) |
Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject) |
| ShouldSerializeProperty(DependencyProperty) |
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject) |
| ToString() |
Creates a string representation of this Vector3DCollection. |
| ToString(IFormatProvider) |
Creates a string representation of this Vector3DCollection. |
| VerifyAccess() |
Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject) |
| WritePostscript() |
Raises the Changed event for the Freezable and invokes its OnChanged() method. Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties. (Inherited from Freezable) |
| WritePreamble() |
Verifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties. (Inherited from Freezable) |
Events
| Name | Description |
|---|---|
| Changed |
Occurs when the Freezable or an object it contains is modified. (Inherited from Freezable) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
For a description of this member, see CopyTo(Array, Int32). |
| ICollection.IsSynchronized |
For a description of this member, see IsSynchronized. |
| ICollection.SyncRoot |
For a description of this member, see SyncRoot. |
| ICollection<Vector3D>.IsReadOnly |
For a description of this member, see IsReadOnly. |
| IEnumerable.GetEnumerator() |
For a description of this member, see GetEnumerator(). |
| IEnumerable<Vector3D>.GetEnumerator() |
For a description of this member, see GetEnumerator(). |
| IFormattable.ToString(String, IFormatProvider) |
For a description of this member, see ToString(String, IFormatProvider). |
| IList.Add(Object) |
For a description of this member, see Add(Object). |
| IList.Contains(Object) |
For a description of this member, see Contains(Object). |
| IList.IndexOf(Object) |
For a description of this member, see IndexOf(Object). |
| IList.Insert(Int32, Object) |
For a description of this member, see Insert(Int32, Object). |
| IList.IsFixedSize |
For a description of this member, see IsFixedSize. |
| IList.IsReadOnly |
For a description of this member, see IsReadOnly. |
| IList.Item[Int32] |
For a description of this member, see Item[Int32]. |
| IList.Remove(Object) |
For a description of this member, see Remove(Object). |