ClassTreeNodeElement
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
TreeNodeElement()
Declaration
public TreeNodeElement()
Fields
FullRowSelectProperty
Declaration
public static RadProperty FullRowSelectProperty
Field Value
IsControlInactiveProperty
Declaration
public static RadProperty IsControlInactiveProperty
Field Value
Properties
ContentElement
Declaration
public TreeNodeContentElement ContentElement { get; }
Property Value
Data
Gets the associated data.
Declaration
public RadTreeNode Data { get; }
Property Value
The data.
Implements
ExpanderElement
Declaration
public TreeNodeExpanderItem ExpanderElement { get; }
Property Value
HasChildren
Gets a value indicating whether this node contains child nodes.
HotTracking
Gets a value indicating that this is the hot tracking node.
ImageElement
Declaration
public TreeNodeImageElement ImageElement { get; }
Property Value
IsControlFocused
Gets or sets a value indicating whether the control contains the focus.
IsCurrent
Gets or sets a value indicating that this is the current node.
IsExpanded
Gets or sets a value indicating whether the node is expanded.
IsRootNode
Gets a value indicating whether the node is currently at root level.
IsSelected
Gets or sets a value indicating whether the node is selected.
ItemHeight
Gets or sets the arbitrary height for this particular node. Valid when the owning RadTreeViewElement's AllowArbitraryHeight property is set to true.
LinesContainerElement
Declaration
public TreeNodeLinesContainer LinesContainerElement { get; }
Property Value
ToggleElement
Declaration
public RadToggleButtonElement ToggleElement { get; }
Property Value
ToolTipText
Declaration
public override string ToolTipText { get; set; }
Property Value
Overrides
TreeViewElement
Declaration
public RadTreeViewElement TreeViewElement { get; }
Property Value
Methods
AddEditor(IInputEditor)
Declaration
public virtual void AddEditor(IInputEditor editor)
Parameters
editor
ApplyStyle()
Declaration
protected virtual void ApplyStyle()
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Attach(RadTreeNode, object)
Attaches the specified data.
Declaration
public virtual void Attach(RadTreeNode data, object context)
Parameters
data
The data.
context
The context.
Implements
CanDragCore(Point)
Determines whether the element may be dragged.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateContentElement()
Declaration
protected virtual TreeNodeContentElement CreateContentElement()
Returns
CreateToggleElement()
Declaration
protected virtual RadToggleButtonElement CreateToggleElement()
Returns
Detach()
Detaches this instance.
Declaration
public virtual void Detach()
Implements
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
Declaration
protected override void DisposeManagedResources()
Overrides
DisposeToggleElement()
Declaration
protected virtual void DisposeToggleElement()
GetDragHintCore()
Gets the image to be used as a hint when this element is being dragged.
Declaration
protected override Image GetDragHintCore()
Returns
An image representing the drag hint for this element.
Overrides
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
IsCompatible(RadTreeNode, object)
Determines whether element is compatible with the specified data.
Declaration
public virtual bool IsCompatible(RadTreeNode data, object context)
Parameters
data
The data.
context
The context.
Returns
true if the specified data is compatible; otherwise, false.
Implements
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnClick(EventArgs)
Raises the Click event.
Declaration
protected override void OnClick(EventArgs e)
Parameters
e
Overrides
OnDoubleClick(EventArgs)
Raises the DoubleClick event.
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
e
Overrides
OnFormatting()
Declaration
protected virtual void OnFormatting()
OnMouseDown(MouseEventArgs)
Called when a mouse button is pressed down over the item.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
e
Overrides
OnMouseHover(EventArgs)
Declaration
protected override void OnMouseHover(EventArgs e)
Parameters
e
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
e
Overrides
OnMouseMove(MouseEventArgs)
Called when the mouse moves over the item, handling highlight and border highlight effects.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the item.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnNodePropertyChanged(PropertyChangedEventArgs)
Declaration
protected virtual void OnNodePropertyChanged(PropertyChangedEventArgs e)
Parameters
e
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
RemoveEditor(IInputEditor)
Declaration
public virtual void RemoveEditor(IInputEditor editor)
Parameters
editor
Synchronize()
Synchronizes this instance.
Declaration
public virtual void Synchronize()
Implements
SynchronizeToggleElement()
Declaration
protected virtual void SynchronizeToggleElement()