Gets the name of a palette based on palette index.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public string GetPaletteName( int palette )
Parameters
- palette Int32
- The index of the palette.
Return Value
StringThe name of the palette.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The index palette is not larger or equal to 0 and less than PaletteCount. |