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

Event arguments used in the ItemPainting event.

Definition

Namespace:Telerik.WinControls.UI.TreeMap

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TreeMapItemPaintingEventArgs : TreeMapItemEventArgs

Inheritance: objectEventArgsTreeMapItemEventArgsTreeMapItemPaintingEventArgs

Derived Classes: TreeMapGroupPaintingEventArgs

Inherited Members TreeMapItemEventArgs.ItemTreeMapItemEventArgs.TreeMapElementEventArgs.Empty

Constructors

Event arguments used in the ItemPainting event.

C#
public TreeMapItemPaintingEventArgs(TreeMapDataItem item, Graphics graphics, RectangleF bounds, Color backColor, Color foreColor, Color borderColor, Font font, string text, ContentAlignment textAlignment)
Parameters:itemTreeMapDataItem

The data item.

graphicsGraphics

The graphics object.

boundsRectangleF

The item bounds.

backColorColor

The item background color.

foreColorColor

The item foreground color.

borderColorColor

The item border color.

fontFont

The item font.

textstring

The item text.

textAlignmentContentAlignment

The text alignment.

Properties

Gets or sets the item background color.

C#
public Color BackColor { get; set; }

Gets or sets the item border color.

C#
public Color BorderColor { get; set; }

Gets the bounds of the item.

C#
public RectangleF Bounds { get; set; }

Gets or sets the item font.

C#
public Font Font { get; set; }

Gets or sets the item foreground color.

C#
public Color ForeColor { get; set; }

Gets the Graphics object.

C#
public Graphics Graphics { get; }

Determines whether the item should be painted.

C#
public bool Handled { get; set; }

Gets or sets the item text.

C#
public string Text { get; set; }

Gets or sets the text alignment.

C#
public ContentAlignment TextAlignment { get; set; }