GH_PaletteStyle

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

Constructors

GH_PaletteStyle

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

GH_PaletteStyle

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

GH_PaletteStyle

#
public GH_PaletteStyle(Color fill)
Construct a new GH_Box_Palette_Colours instance with a single base colour.
fill (Color)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

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

Fill

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

Text

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

Methods

CreateBrush

#
public virtual Brush CreateBrush(RectangleF rec, float zoom)
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.
rec (RectangleF)Target rectangle of fill brush.
zoom (float)Zoom level of target graphics surface.
A brush object that can be used to fill a custom area.