New to Telerik UI for .NET MAUIStart a free 30-day trial

Defines an entry in a ChartPalette instance.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.Chart

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

C#
public struct PaletteEntry

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the PaletteEntry struct.

C#
public PaletteEntry(Color fillColor, Color strokeColor)
Parameters:fillColorColor

The fill color.

strokeColorColor

The stroke color.

Initializes a new instance of the PaletteEntry struct.

C#
public PaletteEntry(Color fillColor)
Parameters:fillColorColor

The fill color.

Properties

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

C#
public Color FillColor { get; set; }

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

C#
public Color StrokeColor { 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: ValueType.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: ValueType.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