XmlTreeNode
Stores XML-serializable node values and child nodes used to create a RadTreeNode.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class XmlTreeNode
Inheritance: objectXmlTreeNode
Constructors
Initializes an empty node data object for XML deserialization.
public XmlTreeNode()
Copies the supported node values and recursively captures the node's current children.
public XmlTreeNode(RadTreeNode node)
The node to capture.
The snapshot includes the node's text, check state, visibility, expansion, images, and supported style values. It does not preserve selection or current-node state.
Fields
Stores the AdditionalTextEndPosition XML attribute. Deserialize() does not apply it to the created node.
public int AdditionalTextEndPosition
Stores the AdditionalTextStartPosition XML attribute. Deserialize() does not apply it to the created node.
public int AdditionalTextStartPosition
Stores the AllowDrop XML attribute. Deserialize() does not apply it to the created node.
public bool AllowDrop
Gets or sets the primary background color represented by XmlBackColor.
public Color BackColor
Gets or sets the second gradient background color represented by XmlBackColor2.
public Color BackColor2
Gets or sets the third gradient background color represented by XmlBackColor3.
public Color BackColor3
Gets or sets the fourth gradient background color represented by XmlBackColor4.
public Color BackColor4
Gets or sets the border color represented by XmlBorderColor.
public Color BorderColor
Gets or sets the check state restored to CheckState.
public ToggleState CheckState
Gets or sets the checkbox or radio-button type restored to CheckType.
public CheckType CheckType
Gets or sets the text color represented by XmlForeColor.
public Color ForeColor
Gets or sets the secondary text color represented by XmlForeColor2. Node deserialization does not apply it.
public Color ForeColor2
Gets or sets the angle used to render the node's gradient background.
public float GradientAngle
Gets or sets the primary transition point for the node's gradient background.
public float GradientPercentage
Gets or sets the secondary transition point for the node's gradient background.
public float GradientPercentage2
Gets or sets how the node's background colors are combined into a gradient.
public GradientStyles GradientStyle
Gets or sets the normal image-list index restored to ImageIndex.
public int ImageIndex
Stores the ImageInFill XML attribute. Deserialize() does not apply it to the created node.
public bool ImageInFill
Gets or sets the normal image-list key restored to ImageKey.
public string ImageKey
Gets or sets the node-specific item height; -1 leaves the node without an explicit height.
public int ItemHeight
Stores the Label XML attribute. Deserialize() does not apply it to the created node.
public string Label
Gets or sets the node name serialized as the Name XML attribute and restored to Name.
public string Name
Nodes
List<XmlTreeNode>
Gets or sets the node's child data. The constructor and Deserialize() process this list recursively.
public List<XmlTreeNode> Nodes
Gets or sets the number of background colors used by the node's gradient.
public int NumberOfColors
Stores the RightImageIndex XML attribute; node deserialization does not apply this right-side image value.
public int RightImageIndex
Stores the RightImageKey XML attribute; node deserialization does not apply this right-side image value.
public string RightImageKey
Stores the SelectedImageIndex XML attribute; node deserialization does not apply this selected-image value.
public int SelectedImageIndex
Stores the SelectedImageKey XML attribute; node deserialization does not apply this selected-image value.
public string SelectedImageKey
Stores the SelectedRightImageIndex XML attribute; node deserialization does not apply this selected right-side image value.
public int SelectedRightImageIndex
Stores the SelectedRightImageKey XML attribute; node deserialization does not apply this selected right-side image value.
public string SelectedRightImageKey
Stores the ShowRightImage XML attribute; node deserialization does not apply this setting.
public bool ShowRightImage
Stores the StateImageIndex XML attribute; node deserialization does not apply this state-image value.
public int StateImageIndex
Stores the StateImageKey XML attribute; node deserialization does not apply this state-image value.
public string StateImageKey
Stores the StateRightImageIndex XML attribute; node deserialization does not apply this right-side state-image value.
public int StateRightImageIndex
Stores the StateRightImageKey XML attribute; node deserialization does not apply this right-side state-image value.
public string StateRightImageKey
Gets or sets the alignment of the node text.
public ContentAlignment TextAlignment
Properties
Gets the shared converter used to write and parse XML color values.
public static ColorConverter ColorConverter { get; }
Gets the shared converter used to write and parse XML font values.
public static FontConverter FontConverter { get; }
Gets or sets whether this type's color and font XML values use invariant culture. The default is true.
public static bool UseInvariantCulture { get; set; }
Gets or sets the XML string for BackColor, using the culture selected by UseInvariantCulture.
public string XmlBackColor { get; set; }
Gets or sets the XML string for BackColor2, using the culture selected by UseInvariantCulture.
public string XmlBackColor2 { get; set; }
Gets or sets the XML string for BackColor3, using the culture selected by UseInvariantCulture.
public string XmlBackColor3 { get; set; }
Gets or sets the XML string for BackColor4, using the culture selected by UseInvariantCulture.
public string XmlBackColor4 { get; set; }
Gets or sets the XML string for BorderColor, using the culture selected by UseInvariantCulture.
public string XmlBorderColor { get; set; }
Gets or sets the XML string for Font. Conversion follows UseInvariantCulture and leaves the font unchanged when parsing fails.
public string XmlFont { get; set; }
Gets or sets the XML string for ForeColor. Parsing uses UseInvariantCulture and leaves the color unchanged when the string cannot be converted.
public string XmlForeColor { get; set; }
Gets or sets the XML string for ForeColor2, using the culture selected by UseInvariantCulture.
public string XmlForeColor2 { get; set; }
Methods
Creates a tree node from the values consumed by this conversion and recursively adds its child nodes.
Maps supported legacy attributes to the current checkbox or radio-button setting.
public virtual void ReadUnknownAttribute(XmlAttribute attribute)
The attribute that the XML serializer did not recognize as a declared member.