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

Stores XML-serializable RadTreeView settings and its root-node data.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class XmlTreeView

Inheritance: objectXmlTreeView

Constructors

Initializes an empty tree data object for XML deserialization.

C#
public XmlTreeView()

Copies the supported settings and root nodes from a tree view.

C#
public XmlTreeView(RadTreeView treeView)
Parameters:treeViewRadTreeView

The tree view to capture.

Fields

Gets or sets whether nodes can use heights other than the tree's default item height.

C#
public bool AllowArbitraryItemHeight

Gets or sets whether the reconstructed tree supports drag-and-drop operations.

C#
public bool AllowDragDrop

Gets or sets whether nodes in the reconstructed tree can accept drops.

C#
public bool AllowDrop

Stores the legacy AllowIncrementalSearch XML attribute. Deserialize(RadTreeView) does not apply it to KeyboardSearchEnabled.

C#
public bool AllowIncrementalSearch

Stores the AllowPlusMinusAnimation XML attribute. Deserialize(RadTreeView) does not apply it.

C#
public bool AllowPlusMinusAnimation

Gets or sets the tree background color represented by XmlBackColor.

C#
public Color BackColor

Gets or sets whether the reconstructed tree displays checkboxes for nodes.

C#
public bool CheckBoxes

Gets or sets the animation used when expanding or collapsing the reconstructed tree.

C#
public ExpandAnimation ExpandAnimation

Gets or sets whether selecting a node highlights its entire row.

C#
public bool FullRowSelect

Gets or sets the default height of tree nodes.

C#
public int ItemHeight

Gets or sets whether node text can be edited in the reconstructed tree.

C#
public bool LabelEdit

Gets or sets the connector-line color represented by XmlLineColor.

C#
public Color LineColor

Gets or sets the style used to draw connector lines between nodes.

C#
public TreeLineStyle LineStyle

Gets or sets the width of connector lines.

C#
public float LineWidth

Stores the MouseDownEditDelay XML attribute. Deserialize(RadTreeView) does not apply it.

C#
public int MouseDownEditDelay

Gets or sets whether the reconstructed tree allows multiple nodes to be selected.

C#
public bool MultiSelect

Gets or sets the serialized root nodes in tree order.

C#
public List<XmlTreeNode> Nodes

Gets or sets the delimiter used between node names in tree paths.

C#
public string PathSeparator

Stores the PlusMinusAnimationStep XML attribute. Deserialize(RadTreeView) does not apply it.

C#
public double PlusMinusAnimationStep

Gets or sets the right-to-left layout direction restored to the tree view.

C#
public RightToLeft RightToLeft

Gets or sets whether node expand and collapse controls are shown.

C#
public bool ShowExpandCollapse

Gets or sets whether connector lines are shown between nodes.

C#
public bool ShowLines

Stores the legacy ShowPlusMinus XML attribute. Deserialize(RadTreeView) uses ShowExpandCollapse instead.

C#
public bool ShowPlusMinus

Gets or sets whether connector lines are drawn for root nodes.

C#
public bool ShowRootLines

Gets or sets the vertical spacing added between adjacent nodes.

C#
public int SpacingBetweenNodes

Gets or sets the theme class name restored to the tree view.

C#
public string ThemeClassName

Gets or sets the theme name restored to the tree view.

C#
public string ThemeName

Gets or sets the horizontal indentation between tree depth levels.

C#
public int TreeIndent

Gets or sets whether checking a parent node propagates its state to child nodes.

C#
public bool TriStateMode

Properties

Gets or sets the XML string used to serialize BackColor with the shared color converter.

C#
public string XmlBackColor { get; set; }

Gets or sets the XML string used to serialize LineColor with the shared color converter.

C#
public string XmlLineColor { get; set; }

Methods

Applies the supported settings to a tree view and replaces its root nodes with the stored node data.

C#
public void Deserialize(RadTreeView treeView)
Parameters:treeViewRadTreeView

The tree view to update; if null, no changes are made.

Maps supported legacy attribute names to the current multi-select and drag-and-drop settings.

C#
public virtual void ReadUnknownAttribute(XmlAttribute attribute)
Parameters:attributeXmlAttribute

An attribute that the XML serializer did not recognize as a declared member.