Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

For palette colors, returns the 0-based index of the color in the spreadsheet's color palette. For custom colors, this property will return a negative number. Automatic colors will return an index greater than or equal to 56 (the maximum index in the palette).

{signature}
{example}{code:csharp|title=C#}
int colorIndex = clr.PaletteIndex;
{code}
{code:vb.net
|title=vb.net
}
Dim colorIndex As Integer = clr.PaletteIndex{code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}For palette colors, returns the 0\-based index of the color in the spreadsheet's color palette. For custom colors, this property will return a negative number. Automatic colors will return an index greater than or equal to 56 (the maximum index in the palette).{excerpt}
{signature:C#}
 public int PaletteIndex{ get; }
Signature
{signature}{signature:vb.net
vb.net
}
Public ReadOnly Property PaletteIndex() As Integer
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle