Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public int PaletteIndex{ get; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public ReadOnly Property PaletteIndex() As Integer</p>Integer
Example
Code Block
csharp
csharp
titleC#

int colorIndex = clr.PaletteIndex;
Code Block
vb.net
vb.net
titlevb.net

Dim colorIndex As Integer = clr.PaletteIndex