This document is archived and information here might be outdated.  Recommended version.


IVector.ComponentByIndex Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IV > IVector Interface > IVector.ComponentByIndex Property
ArcGIS Developer Help

IVector.ComponentByIndex Property

The component corresponding to a given index.

[Visual Basic .NET]
Public Function get_ComponentByIndex ( _
    ByVal componentIndex As Integer _
) As Double
[Visual Basic .NET]
Public Sub set_ComponentByIndex ( _
    ByVal componentIndex As Integer, _
    ByVal componentValue As Double _
)
[C#]
public double get_ComponentByIndex (
    int componentIndex
);
[C#]
public void set_ComponentByIndex (
    int componentIndex,
    double componentValue
);
[C++]
HRESULT get_ComponentByIndex(
  long componentIndex,
  System.Double* componentValue
);
[C++]
HRESULT put_ComponentByIndex(
  long componentIndex,
  double componentValue
);
[C++]
Parameters
componentIndex 

componentIndex is a parameter of type long componentValue [out, retval]
componentValue is a parameter of type double* componentIndex
componentIndex is a parameter of type long componentValue
componentValue is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns or sets the value of the component of the specified index.  The first component has index 0.  An Nth Dimensional vector has N components (0, 1, . . ., N-2, N-1).

See Also

IVector Interface