New to Telerik UI for WinFormsStart a free 30-day trial

A data visualization control that displays hierarchical data as a set of nested rectangles, where each rectangle's size represents a quantitative value.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[TelerikToolboxCategory("Data Controls")]
public class RadTreeMap : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadTreeMap...

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window...

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Dispose(bool)RadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.WndProc(ref Message)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGesture...

Constructors

Initializes a new instance of the RadTreeMap class.

C#
public RadTreeMap()

Properties

Gets or sets the algorithm used to calculate the layout and positioning of rectangles in the tree map.

C#
[Browsable(false)]
public TreeMapAlgorithm Algorithm { get; set; }

Gets or sets a value indicating whether items are highlighted when the mouse hovers over them.

C#
public bool AllowHotTracking { get; set; }

Gets or sets a value indicating whether users can select items in the tree map by clicking on them.

C#
public bool AllowSelection { get; set; }

Gets or sets the colorizer that determines the background and foreground colors for tree map items.

C#
[Browsable(false)]
public BaseColorizer Colorizer { get; set; }

Gets or sets the data source that provides the hierarchical data to be visualized in the tree map.

C#
[Browsable(true)]
public object DataSource { get; set; }

Gets the default size of the RadTreeMap when a new instance is initialized.

C#
protected override Size DefaultSize { get; }

Overrides: Control.DefaultSize

Gets or sets the name of the property from the data source that provides the display text for each item.

C#
[Browsable(true)]
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string DisplayMember { get; set; }

Gets or sets a value indicating whether automatic grouping of data items is enabled based on the GroupDescriptors.

C#
public bool EnableGrouping { get; set; }

Gets or sets the background color used for group headers and containers.

C#
public Color GroupBackColor { get; set; }

Gets or sets the border color used for group headers and containers.

C#
public Color GroupBorderColor { get; set; }

Gets a collection of GroupDescriptor objects that define the rules for automatically grouping tree map items.

C#
[Browsable(true)]
public GroupDescriptorCollection GroupDescriptors { get; }

Gets a collection of TreeMapDataItemGroup objects that represent the grouped data items in the tree map.

C#
[Browsable(true)]
public TreeMapDataItemGroupCollection Groups { get; }

Gets or sets the alignment of text within group headers.

C#
public ContentAlignment GroupTextAlignment { get; set; }

Gets the TreeMapDataItemGroup that is currently under the mouse cursor.

C#
[Browsable(false)]
public TreeMapDataItemGroup HoveredGroup { get; }

Gets the TreeMapDataItem that is currently under the mouse cursor.

C#
[Browsable(false)]
public TreeMapDataItem HoveredItem { get; }

Gets or sets the background color applied to items when they are hovered over by the mouse.

C#
public Color HoveredItemBackColor { get; set; }

Gets or sets the border color applied to items when they are hovered over by the mouse.

C#
public Color HoveredItemBorderColor { get; set; }

Gets or sets the thickness of the border applied to items when they are hovered over by the mouse.

C#
public int HoveredItemBorderWidth { get; set; }

Gets a collection of TreeMapDataItem objects that represent the individual data items in the tree map.

C#
[Browsable(true)]
public TreeMapDataItemCollection Items { get; }

Gets or sets the alignment of text within individual tree map items.

C#
public ContentAlignment ItemTextAlignment { get; set; }

Gets or sets the orientation of legend items when the legend is displayed.

C#
public Orientation LegendOrientation { get; set; }

Gets or sets the position where the legend is displayed relative to the tree map.

C#
public RadPosition LegendPosition { get; set; }

Gets or sets the title text displayed above the legend.

C#
public string LegendTitle { get; set; }

Gets or sets the currently selected TreeMapDataItemGroup.

C#
[Browsable(false)]
public TreeMapDataItemGroup SelectedGroup { get; set; }

Gets or sets the currently selected TreeMapDataItem.

C#
[Browsable(false)]
public TreeMapDataItem SelectedItem { get; set; }

Gets or sets the background color applied to items when they are selected.

C#
public Color SelectedItemBackColor { get; set; }

Gets or sets the border color applied to items when they are selected.

C#
public Color SelectedItemBorderColor { get; set; }

Gets or sets the thickness of the border applied to items when they are selected.

C#
public int SelectedItemBorderWidth { get; set; }

Gets or sets a value indicating whether a legend is displayed to explain the color coding of tree map items.

C#
public bool ShowLegend { get; set; }

Gets or sets the title text displayed at the top of the tree map control.

C#
public string Title { get; set; }

Gets or sets the mode for displaying tooltips when users hover over tree map items.

C#
public ToolTipDisplayMode ToolTipDisplayMode { get; set; }

Gets the core tree map element that handles the visualization and data processing.

C#
[Browsable(false)]
public RadTreeMapElement TreeMapElement { get; }

Gets or sets the name of the property from the data source that provides the quantitative value for each item.

C#
[Browsable(true)]
public string ValueMember { get; set; }

Gets or sets a value indicating whether text within tree map items should wrap to multiple lines when it exceeds the item's width.

C#
public bool WrapItemText { get; set; }

Methods

Applies the configured colorizer to all tree map items to set their background and foreground colors.

C#
public virtual void ColorizeItems()

Creates the child items for the parent element.

C#
protected override void CreateChildItems(RadElement parent)
Parameters:parentRadElement

The parent element that will contain the child items.

Overrides: RadControl.CreateChildItems(RadElement)

Creates the core tree map element that provides the visualization functionality.

C#
protected virtual RadTreeMapElement CreateTreeMapElement()
Returns:

RadTreeMapElement

A new instance of RadTreeMapElement.

Recalculates the layout algorithm to determine the size and position of all tree map items based on their values.

C#
public void EvaluateAlgorithm()

Events

Occurs after the layout algorithm has been evaluated and all tree map items have been assigned their final bounds.

C#
public event EventHandler AlgorithmEvaluated

Occurs after a tree map group and all its child items have been painted.

C#
public event TreeMapGroupPaintedEventHandler GroupPainted

Occurs before a tree map group is painted, allowing customization of its appearance.

C#
public event TreeMapGroupPaitingEventHandler GroupPainting

Occurs when the HoveredGroup property changes due to mouse movement.

C#
public event TreeMapGroupChangedEventHandler HoveredGroupChanged

Occurs when the HoveredItem property changes due to mouse movement.

C#
public event TreeMapItemChangedEventHandler HoveredItemChanged

Occurs when a TreeMapDataItem needs to be created during data binding operations.

C#
public event TreeMapItemCreatingEventHandler ItemCreating

Occurs after a data-bound item has been attached to a TreeMapDataItem during data binding.

C#
public event TreeMapItemEventHandler ItemDataBound

Occurs after a tree map item has been painted.

C#
public event TreeMapItemPaitedEventHandler ItemPainted

Occurs before a tree map item is painted, allowing customization of its appearance.

C#
public event TreeMapItemPaitingEventHandler ItemPainting

Occurs before a screen tip is displayed, allowing customization of the tip's content and appearance.

C#
public event TreeMapScreenTipEventHandler ScreenTipShowing

Occurs after the SelectedGroup property has changed.

C#
public event TreeMapGroupChangedEventHandler SelectedGroupChanged

Occurs before the SelectedGroup property changes, allowing the operation to be cancelled.

C#
public event TreeMapGroupChangingEventHandler SelectedGroupChanging

Occurs after the SelectedItem property has changed.

C#
public event TreeMapItemChangedEventHandler SelectedItemChanged

Occurs before the SelectedItem property changes, allowing the operation to be cancelled.

C#
public event TreeMapItemChangingEventHandler SelectedItemChanging

Occurs before a tooltip is displayed, allowing customization of the tooltip's content and appearance.

C#
public event TreeMapToolTipEventHandler ToolTipShowing