New to Telerik UI for WinForms? Start a free 30-day trial

Stores the background, foreground, and border colors for a tree map item or group.

Local color values take precedence over values supplied by the configured colorizer.

Definition

Namespace:Telerik.WinControls.UI.TreeMap

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TreeMapItemStyle

Inheritance: objectTreeMapItemStyle

Constructors

Initializes effective colors to white, black, and empty for the background, foreground, and border.

C#
public TreeMapItemStyle()

These initial values are not local overrides and can be replaced by a colorizer.

Properties

Gets or sets the background color.

C#
public Color BackColor { get; set; }

Gets the backing color state used for the background.

C#
protected virtual TreeMapItemStyleColor BackColorStyle { get; }

Gets or sets the border color.

C#
public Color BorderColor { get; set; }

Gets the backing color state used for the border.

C#
protected virtual TreeMapItemStyleColor BorderColorStyle { get; }

Sets the back color from the colorizer. If the value is locally set the this property will not be applied.

C#
public virtual Color ColorizerBackColor { get; set; }

Sets the border color from the colorizer. If the value is locally set the this property will not be applied.

C#
public virtual Color ColorizerBorderColor { get; set; }

Sets the fore color from the colorizer. If the value is locally set the this property will not be applied.

C#
public virtual Color ColorizerForeColor { get; set; }

Gets or sets the foreground color.

C#
public Color ForeColor { get; set; }

Gets the backing color state used for the foreground.

C#
protected virtual TreeMapItemStyleColor ForeColorStyle { get; }

Methods

Sets a color as either a local override or a colorizer-provided value.

C#
public virtual void SetStyleColor(TreeMapItemStyleColor style, Color color, bool isLocal = true)
Parameters:styleTreeMapItemStyleColor

The color state to update; null is ignored.

colorColor

The color to apply or record.

isLocalbool

true to make a non-empty color override colorizer output; otherwise, record it as colorizer output.

A local value of Empty clears the override and restores the last colorizer value. Colorizer values are recorded even while a local override remains active.