Gets the number of buttons for a given palette in the service.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2016
Syntax
C# |
---|
public int GetButtonCount( int palette ) |
Visual Basic |
---|
Public Function GetButtonCount ( _ palette As Integer _ ) As Integer |
Visual C++ |
---|
public: int GetButtonCount( int palette ) |
Parameters
- palette
- Type: System..::..Int32
The index of the palette
Return Value
The number of buttons.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException | the index palette is not larger or equal to 0 and less than PaletteCount |