Description |
---|
...
Wiki Markup |
---|
{description} {excerpt}The [Palette|Palette] class represents Excel's color palette. |
...
Signature | ||
---|---|---|
C# | C# | {excerpt}
{signature:C#}
public sealed class Palette
|
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class Palette
|
Remarks |
---|
Each Excel document has a single color palette that manages the colors for formatting and some drawing layer colors. A color palette contains 56 colors that may be referenced. Each of these 56 colors may be customized, but changing a color in the palette will affect all formatting that uses the referenced color. A workbook's color palette is accessible through Workbook.Palette. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vbnet | vbnet | title |
Fields |
---|
...
Name
...
Description
...
...
{code} {example} {fields} ||Name||Description|| |[MinColorIndex|Palette.MinColorIndex]|{excerpt-include:Palette.MinColorIndex |
...
|nopanel=true}| |[MinRGBValue|Palette.MinRGBValue]|{excerpt-include |
...
:Palette.MinRGBValue |
...
|nopanel=true}| |[MaxColorIndex|Palette.MaxColorIndex]|{excerpt-include |
...
:Palette.MaxColorIndex |
...
|nopanel=true}| |[MaxRGBValue|Palette.MaxRGBValue]|{excerpt-include |
...
:Palette.MaxRGBValue |
...
Methods |
---|
...
Name
...
Description
|nopanel=true}| {methods} ||Name||Description|| |[GetClosestColor(Int32, Int32, Int32) |
...
|Palette.GetClosestColor(Int32, Int32, Int32) |
...
]|{excerpt-include:Palette.GetClosestColor(Int32, Int32, Int32) |
...
|nopanel |
...
=true}| |[GetClosestColor(System.Drawing.Color) |
...
|Palette.GetClosestColor(System.Drawing.Color) |
...
]|{excerpt-include:Palette.GetClosestColor(System.Drawing.Color) |
...
|nopanel |
...
=true}| |[GetColor(Int32, Int32, Int32) |
...
|Palette.GetColor(Int32, Int32, Int32) |
...
]|{excerpt-include:Palette.GetColor(Int32, Int32, Int32) |
...
|nopanel |
...
=true}| |[GetColor(System.Drawing.Color) |
...
|Palette.GetColor(System.Drawing.Color) |
...
]|{excerpt-include:Palette.GetColor(System.Drawing.Color) |
...
|nopanel |
...
=true}| |[GetColorAt(Int32) |
...
|Palette.GetColorAt(Int32) |
...
]|{excerpt-include:Palette.GetColorAt(Int32) |
...
|nopanel |
...
=true}| |[SetColor(Color, Int32, Int32, Int32) |
...
|Palette.SetColor(Color, Int32, Int32, Int32) |
...
]|{excerpt-include:Palette.SetColor(Color, Int32, Int32, Int32) |
...
|nopanel |
...
=true}| |[SetColorAt(Int32, Int32, Int32, Int32) |
...
|Palette.SetColorAt(Int32, Int32, Int32, Int32) |
...
]|{excerpt-include:Palette.SetColorAt(Int32, Int32, Int32, Int32) |
...
|nopanel |
...
Classes |
---|
...
Name
...
Description
...
...
=true}| {classes} ||Name||Description|| |[SystemColor|Palette.SystemColor]|{excerpt-include:Palette.SystemColor |
...
|nopanel=true}|
|