Revit 2026 API
Fabrication |
Gets the number of buttons for a given palette in the service.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public int GetButtonCount( int palette )
Public Function GetButtonCount ( palette As Integer ) As Integer
public: int GetButtonCount( int palette )
member GetButtonCount : palette : int -> int
Parameters
- palette Int32
- The index of the palette
Return Value
Int32The number of buttons.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The index palette is not larger or equal to 0 and less than PaletteCount. |
See Also