Page tree

Versions Compared

Key

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

Excerpt

Returns the color at the specified 0-based index within the Palette.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns the color at the specified 0\-based index within the Palette.{excerpt}
{signature:C#}
 public Color GetColorAt(int index)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function GetColorAt(ByVal index As Integer) As Color
Parameters

...

The 0-based index of the color to return. Must be between 0 and 55.

Returns

The color at the specified index.

Remarks

For .xlsx files, this will return a color from the legacy palette. Colors in the legacy palette will be used when opening the file in Excel 2003.

{signature}
{parameters}
{param:index}The 0\-based index of the color to return. Must be between 0 and 55.{param}
{returns}The color at the specified index.{returns}
{remarks}
For .xlsx files, this will return a color from the legacy palette. Colors in the legacy palette will be used when opening the file in Excel 2003.
{remarks}
{example}{code:csharp|title=C#}
Color clr = pal.GetColorAt(4);
{code}
{code:vb.net
|title=vb.net
}
Dim clr As Color = pal.GetColorAt(4){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle