Table of Contents

Class TreeStyle

Namespace
Myra.Graphics2D.UI.Styles
Assembly
Myra.dll

Style class that defines the visual appearance of tree view widgets.

public class TreeStyle : WidgetStyle
Inheritance
TreeStyle
Inherited Members

Constructors

TreeStyle()

Initializes a new instance of the TreeStyle class.

public TreeStyle()

TreeStyle(TreeStyle)

Initializes a new instance of the TreeStyle class by copying properties from another style.

public TreeStyle(TreeStyle style)

Parameters

style TreeStyle

The source tree style to copy from.

Properties

LabelStyle

Gets or sets the style applied to the tree node text label.

[Browsable(false)]
public LabelStyle LabelStyle { get; set; }

Property Value

LabelStyle

MarkStyle

Gets or sets the style applied to the tree node expand/collapse toggle mark button.

[Browsable(false)]
public ImageButtonStyle MarkStyle { get; set; }

Property Value

ImageButtonStyle

SelectionBackground

Gets or sets the brush used for the background of selected tree nodes.

public IBrush SelectionBackground { get; set; }

Property Value

IBrush

SelectionHoverBackground

Gets or sets the brush used for the background of hovered tree nodes.

public IBrush SelectionHoverBackground { get; set; }

Property Value

IBrush

Methods

Clone()

Creates a deep copy of this tree style.

public override WidgetStyle Clone()

Returns

WidgetStyle

A new TreeStyle instance with the same properties.