GetUpperBound Method


Repeater Bounds Get Upper Bound Method

Returns the highest index of the array in the given dimension.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public int GetUpperBound(
	int dimension
)

Parameters

dimension Int32
The dimension.

Return Value

Int32
The 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.
Remarks
The dimension begins at 0 and must be in the range [0, number of dimensions in the bounds - 1]. This method does not apply to zero dimensional bounds.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →