Returns the highest index of the array in the given dimension.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public int GetUpperBound( int dimension )
Parameters
- dimension Int32
- The dimension.
Return Value
Int32The highest index of the array in the given dimension.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The dimension is invalid for these bounds. |
InvalidOperationException | The bounds must have at least one dimension. |