Click or drag to resize

TreeNode Class

Represents a tree node.
Inheritance Hierarchy
System.Web.UIControl
  Dynamicweb.ControlsTreeNode

Namespace:  Dynamicweb.Controls
Assembly:  Dynamicweb.Controls (in Dynamicweb.Controls.dll) Version: 4.2.3
Syntax
[DefaultPropertyAttribute("Name")]
public class TreeNode : Control

The TreeNode type exposes the following members.

Constructors
  NameDescription
Public methodTreeNode
Initializes a new instance of the TreeNode class
Top
Properties
  NameDescription
Public propertyAdditionalCssClass
Additioanl class of the node.
Public propertyCheckable
Gets or sets value indicating whether to enable check box in node.
Public propertyChecked
Is the node checked.
Public propertyContextMenuID
ID of Dynamicweb.Controls.Contextmenu to display on right click.
Public propertyDisabled
Sets or gets whether this TreeNodes icon should be dimmed
Public propertyDragAndDrop
Gets drag and drop settings.
Public propertyHasChildren
Gets or sets value indicating whether this node has child nodes and should have 'Expand' icon.
Public propertyHref
Href or link for the node.
Public propertyIcon
Icon
Public propertyIconColor
Icon color
Public propertyImage
Image file to use as the icon. Uses default if not specified.
Public propertyImageClose
Image file to use as the close icon. Uses FolderClosed if not specified.
Public propertyImageClosePath
Path of icon used - can be used to overwrite the built-in icons in the ImageClose property.
Public propertyImageOpen
Image file to use as the open icon. Uses Folder if not specified.
Public propertyImageOpenPath
Path of icon used - can be used to overwrite the built-in icons in the ImageOpen property.
Public propertyImagePath
Path of icon used - can be used to overwrite the built-in icons in the Image property.
Public propertyItemID
Custom ItemID that can be used to set a unique reference to an object.
Public propertyName
Name of the node.
Public propertyNodeID
ID of the node.
Public propertyOnDoubleClick
Sets or gets the ondblclick event on this node
Public propertyOpen
Is the node open.
Public propertyParentID
The parent ID of the node. Should be an ID that is in the tree or -1 for Root.
Public propertyTarget
Target for the href.
Public propertyTitle
Title for the node.
Top
Methods
  NameDescription
Public methodAdditionalAttributesDictionaryToString
Public methodCopyFrom
Copies property values from the given node to the current node.
Public methodGetAttribute
Protected methodRender
Renders tree node.
Public methodSetAttribute
Additional attributes for the tree node.
Top
Remarks