TreeNodeElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TreeNodeElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<RadTreeNode>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementTreeNodeElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public TreeNodeElement()
Fields
protected const long AlrternatingColorSetState = 1
public static RadProperty FullRowSelectProperty
protected const long FullRowSelectState = 2
public static RadProperty HasChildrenProperty
public static RadProperty HotTrackingProperty
public static RadProperty IsControlInactiveProperty
public static RadProperty IsCurrentProperty
public static RadProperty IsExpandedProperty
public static RadProperty IsRootNodeProperty
public static RadProperty IsSelectedProperty
public static RadProperty ItemHeightProperty
protected const long UpdateCheckStateByKeyboard = 16
protected const long UpdateCheckStateByMouse = 8
protected const long UpdateScrollRangeIfNeeded = 4
Properties
protected bool CheckedByKeyboard { get; set; }
protected bool CheckedByMouse { get; set; }
public TreeNodeContentElement ContentElement { get; }
Gets the associated data.
public RadTreeNode Data { get; }
The data.
Implements:
public IInputEditor Editor { get; }
public TreeNodeExpanderItem ExpanderElement { get; }
Gets a value indicating whether this node contains child nodes.
public virtual bool HasChildren { get; }
Gets a value indicating that this is the hot tracking node.
public virtual bool HotTracking { get; }
public TreeNodeImageElement ImageElement { get; }
Gets or sets a value indicating whether the control contains the focus.
public virtual bool IsControlFocused { get; }
Gets or sets a value indicating that this is the current node.
public virtual bool IsCurrent { get; }
Gets or sets a value indicating whether the node is expanded.
public virtual bool IsExpanded { get; }
public bool IsInEditMode { get; }
Gets a value indicating whether the node is currently at root level.
public virtual bool IsRootNode { get; }
Gets or sets a value indicating whether the node is selected.
public virtual bool IsSelected { get; }
Gets or sets the arbitrary height for this particular node. Valid when the owning RadTreeViewElement's AllowArbitraryHeight property is set to true.
public virtual int ItemHeight { get; set; }
public TreeNodeLinesContainer LinesContainerElement { get; }
public RadToggleButtonElement ToggleElement { get; }
public override string ToolTipText { get; set; }
Overrides:
public RadTreeViewElement TreeViewElement { get; }
Methods
protected virtual void ApplyStyle()
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Attaches the specified data.
public virtual void Attach(RadTreeNode data, object context)
The data.
contextobjectThe context.
Implements:
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Detaches this instance.
public virtual void Detach()
Implements:
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
protected virtual void DisposeToggleElement()
Gets the image to be used as a hint when this element is being dragged.
protected override Image GetDragHintCore()
An image representing the drag hint for this element.
Overrides:
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Determines whether element is compatible with the specified data.
public virtual bool IsCompatible(RadTreeNode data, object context)
The data.
contextobjectThe context.
Returns:true if the specified data is compatible; otherwise, false.
Implements:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Raises the Click event.
Raises the DoubleClick event.
protected virtual void OnFormatting()
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when the mouse moves over the item, handling highlight and border highlight effects.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when a mouse button is released over the item.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event arguments.
Overrides:
protected virtual void OnNodePropertyChanged(PropertyChangedEventArgs e)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Synchronizes this instance.
public virtual void Synchronize()
Implements:
protected virtual void SynchronizeToggleElement()