New to Telerik UI for WinFormsStart a free 30-day trial

Defines an entry in a ChartPalette instance.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

C#
public class PaletteEntry

Inheritance: objectPaletteEntry

Constructors

Initializes a new instance of the PaletteEntry struct.

C#
public PaletteEntry(Color fill, Color stroke, Color additionalFill, Color additionalStroke)
Parameters:fillColor

The fill.

strokeColor

The stroke.

additionalFillColor

The secondary fill.

additionalStrokeColor

The secondary stroke.

Initializes a new instance of the PaletteEntry struct.

C#
public PaletteEntry(Color fill, Color stroke, Color additionalFill)
Parameters:fillColor

The fill.

strokeColor

The stroke.

additionalFillColor

The secondary fill.

Initializes a new instance of the PaletteEntry struct.

C#
public PaletteEntry(Color fill, Color stroke)
Parameters:fillColor

The fill.

strokeColor

The stroke.

Initializes a new instance of the PaletteEntry struct.

C#
public PaletteEntry(Color fill)
Parameters:fillColor

The fill.

Properties

Gets or sets the Brush instance that defines the up-fill of the corresponding visual objects.

C#
public Color AdditionalFill { get; set; }

Gets or sets the Brush instance that defines the stroke of the corresponding visual objects.

C#
public Color AdditionalStroke { get; set; }

Gets or sets the Brush instance that defines the fill of the corresponding visual objects.

C#
public Color Fill { get; set; }

Gets a value indicating whether the specified palette is predefined and may not be modified by the user.

C#
public bool IsPredefined { get; }

Gets or sets the Brush instance that defines the stroke of the corresponding visual objects.

C#
public Color Stroke { get; set; }

Methods

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: object.GetHashCode()

Operators

Determines whether the two palette entries are not equal.

C#
public static bool operator !=(PaletteEntry entry1, PaletteEntry entry2)
Parameters:entry1PaletteEntryentry2PaletteEntryReturns:

bool

Determines whether the two palette entries are equal.

C#
public static bool operator ==(PaletteEntry entry1, PaletteEntry entry2)
Parameters:entry1PaletteEntryentry2PaletteEntryReturns:

bool