ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / Vector2 Structure / Item Property
The index of the component to access. Use 0 for the X component and 1 for the Y component.

In This Topic
    Item Property (Vector2)
    In This Topic
    Gets or sets the component at the specified index.
    Syntax
    'Declaration
     
    Public Default Property Item( _
       ByVal index As Integer _
    ) As Single
    public float this[ 
       int index
    ]; {get; set;}

    Parameters

    index
    The index of the component to access. Use 0 for the X component and 1 for the Y component.

    Property Value

    The value of the X or Y component, depending on the index.The value of the component at the specified index.
    Exceptions
    ExceptionDescription
    Thrown when the index is out of the range [0, 1].
    See Also