GH_PaletteStyle

References
public class GH_PaletteStyle
Contains all the colours for a single capsule palette.

Constructors

GH_PaletteStyle

#
Construct a new GH_Box_Palette_Colours instance.
public GH_PaletteStyle(
Color
fill,
Colour to use for background fills.
Color
edge,
Colour to use for edges.
Color
text
Colour to use for text objects.
)

GH_PaletteStyle

#
Construct a new GH_Box_Palette_Colours instance.
public GH_PaletteStyle(
Color
fill,
Colour to use for background fills.
Color
edge
Colour to use for edges.
)

GH_PaletteStyle

#
Construct a new GH_Box_Palette_Colours instance with a single base colour.
public GH_PaletteStyle(
Color
fill
Colour to use for background fills. All other colours are computed based on this colour.
)

Fields

m_edge

#
[EditorBrowsable(EditorBrowsableState.Never)] public Color m_edge

m_fill

#
[EditorBrowsable(EditorBrowsableState.Never)] public Color m_fill

m_text

#
[EditorBrowsable(EditorBrowsableState.Never)] public Color m_text

Properties

Edge

#
Gets or sets the edge of this style.
public Color Edge { get; set; }

Fill

#
Gets or sets the fill of this style.
public Color Fill { get; set; }

Text

#
Gets or sets the text of this style.
public Color Text { get; set; }

Methods

CreateBrush

#
Create a fill brush. At low zoom levels the brush will be solid colour, at medium to high zoom levels the brush will have a gradient.
public virtual Brush CreateBrush(
rec,
Target rectangle of fill brush.
zoom
Zoom level of target graphics surface.
)
A brush object that can be used to fill a custom area.