CustomPalette

References
public sealed class CustomPalette
Provides a system-wide square grid of colours the user is allowed to specify.

Constructors

CustomPalette

#
Create a new custom palette, populated with the system-wise settings.
public CustomPalette()

CustomPalette

#
Create a custom palette.
public CustomPalette(
rows,
Number of rows.
columns,
Number of columns.
entries
Initial entries.
)

Properties

Bounds

#
Gets the bounds of this palette. This field gets assigned during drawing operations.
public RectangleF Bounds { get; }

Columns

#
Gets the number of columns in this palette.
public int Columns { get; }

DefaultEntries

#
Gets the default entries.
public static IEnumerable<CustomPaletteEntry> DefaultEntries { get; }

DefaultSize

#
Gets the default width and height for custom palettes.
public static int DefaultSize { get; }

Rows

#
Gets the number of rows in this palette.
public int Rows { get; }

SpecifiedEntries

#
Enumerate over all specified entries.
public IEnumerable<CustomPaletteEntry> SpecifiedEntries { get; }

Indexers

this[]

#
Gets the entry at the specified row and column.
public CustomPaletteEntry this[
row,
Row index.
column
Column index.
] { get; }
The entry and the specified row and column.

Methods

Draw

#
Draw this palette into a rectangle.
public void Draw(
context,
Graphics context.
RectangleF
bounds
Bounds which contains the palette.
)

EntryAt

#
Gets the entry underneath the given point.
public CustomPaletteEntry EntryAt(
PointF
point,
Point.
out RectangleF
entryBounds
Gets the box for the found entry.
)
Entry underneath point.

EntryAt

#
Gets the entry underneath the given point.
public CustomPaletteEntry EntryAt(
PointF
point
Point.
)
Entry underneath point.

PaletteIcon

#
Gets the icon for the custom palette.
public static IIcon PaletteIcon()
Icon.