Gets the number of buttons for a given palette in the service.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public int GetButtonCount( int palette )
Parameters
- palette Int32
- The index of the palette
Return Value
Int32The number of buttons.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The index palette is not larger or equal to 0 and less than PaletteCount. |
