This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IV > IVector Interface > IVector.ComponentByIndex Property (ArcObjects .NET 10.5 SDK) |
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,
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
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).