• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
RadElementTree
ComponentThemableElementTree
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
System.IDisposable.Dispose()

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()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.