Class RadElementTree
Represents RadElementTree. Every Telerik control has a corresponding tree of RadElements. This gives a lot of flexibility in building controls allowing, for example, inheritance of properties from the ancenstor nodes.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadElementTree : IDisposable
Constructors
RadElementTree(IComponentTreeHandler)
Initializes a new instance of RadElementTree class.
Declaration
public RadElementTree(IComponentTreeHandler component)
Parameters
IComponentTreeHandler
component
|
Properties
AllowShowEvaluation
Declaration
protected static bool AllowShowEvaluation { get; }
Property Value
System.Boolean
|
ComponentTreeHandler
Gets the bridge between the abstract RadElement layout and the RadControl instance.
Declaration
public IComponentTreeHandler ComponentTreeHandler { get; }
Property Value
IComponentTreeHandler
|
Control
Gets or sets the RadControl for the corresponding tree.
Declaration
public Control Control { get; }
Property Value
System.Windows.Forms.Control
|
Disposing
Declaration
public bool Disposing { get; }
Property Value
System.Boolean
|
IsLayoutSuspended
Declaration
public bool IsLayoutSuspended { get; }
Property Value
System.Boolean
|
RootElement
Gets the RootElement of the tree.
Declaration
public RootRadElement RootElement { get; }
Property Value
RootRadElement
|
TreeName
Gets the tree name.
Declaration
public string TreeName { get; }
Property Value
System.String
|
Methods
Dispose()
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
GetElementAtPoint(Point)
Gets the element at specific coordinates if it handles the mouse input.
Declaration
public RadElement GetElementAtPoint(Point point)
Parameters
System.Drawing.Point
point
Element location in control coordinates |
Returns
RadElement
The element if successfull, otherwise null |
GetElementAtPoint(Point, Predicate<RadElement>)
Gets the element at specific coordinates if it meets the predicate criteria.
Declaration
public RadElement GetElementAtPoint(Point point, Predicate<RadElement> predicate)
Parameters
System.Drawing.Point
point
Element location in control coordinates |
System.Predicate<RadElement>
predicate
Specify a predicate or null if the first element should be returned. |
Returns
RadElement
The element if successfull, otherwise null |
GetElementAtPoint(RadElement, Point, List<RadElement>)
Declaration
public RadElement GetElementAtPoint(RadElement parent, Point point, List<RadElement> foundElements)
Parameters
RadElement
parent
|
System.Drawing.Point
point
|
System.Collections.Generic.List<RadElement>
foundElements
|
Returns
RadElement
|
GetElementAtPoint(RadElement, Point, List<RadElement>, Predicate<RadElement>)
Declaration
public RadElement GetElementAtPoint(RadElement parent, Point point, List<RadElement> foundElements, Predicate<RadElement> predicate)
Parameters
RadElement
parent
|
System.Drawing.Point
point
|
System.Collections.Generic.List<RadElement>
foundElements
|
System.Predicate<RadElement>
predicate
|
Returns
RadElement
|
GetElementAtPoint<T>(Point)
Gets the element of specific type at specific coordinates if it handles the mouse input.
Declaration
public T GetElementAtPoint<T>(Point point)
where T : class
Parameters
System.Drawing.Point
point
Element location in control coordinates |
Returns
T
The element if successfull, otherwise null |
Type Parameters
T
|
GetPreferredSize(Size, Size)
Retrieves the size of a rectangular area into which a control can be fitted. This override is called only when AutoSize is true.
Declaration
public virtual Size GetPreferredSize(Size proposedSize, Size sizeConstraints)
Parameters
System.Drawing.Size
proposedSize
|
System.Drawing.Size
sizeConstraints
|
Returns
System.Drawing.Size
|
InitializeRootElement()
Declaration
public virtual void InitializeRootElement()
OnAutoSizeChanged(EventArgs)
Declaration
public virtual void OnAutoSizeChanged(EventArgs e)
Parameters
System.EventArgs
e
|
PerformInnerLayout(Boolean, Int32, Int32, Int32, Int32)
Declaration
public Size PerformInnerLayout(bool performMeasure, int x, int y, int width, int height)
Parameters
System.Boolean
performMeasure
|
System.Int32
x
|
System.Int32
y
|
System.Int32
width
|
System.Int32
height
|
Returns
System.Drawing.Size
|
PerformLayout()
Declaration
public void PerformLayout()