Page tree

Versions Compared

Key

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

...

Description

Excerpt

Returns whether or not the color is a custom color.

Signature
C#
C#
public boolean IsCustomColor{ get; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public ReadOnly Property IsCustomColor() As Boolean
{signature}
{remarks}
For 
Remarks

For .xls

files

a

custom

color

is

a

color

that

is

not

part

of

Excel's

default

color

palette.

For

.xlsx

files,

a

custom

color

is

any

color

that

has

not

been

retrieved

from

the

legacy

palette

(through

[

Palette.SetColorAt

|Palette.SetColorAt(Int32, Int32, Int32, Int32)]

or

[

Palette.GetColorAt

|Palette.GetColorAt(Int32

)

])

,

and

is

not

a

system

color.

{remarks} {example}{code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#
bool customColor = clr.IsCustomColor;
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}
Dim customColor As Boolean = clr.IsCustomColor
{code} {example}