Class SfTreeMap
Class implementation for SfTreeMap
Inheritance
Namespace: Com.Syncfusion.Treemap
Assembly: Syncfusion.SfTreeMap.Android.dll
Syntax
public class SfTreeMap : FrameLayout
Constructors
SfTreeMap(Context)
Initializes a new instance of the SfTreeMap class.
Declaration
public SfTreeMap(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | To set context |
SfTreeMap(Context, IAttributeSet)
Initializes a new instance of the SfTreeMap class.
Declaration
public SfTreeMap(Context context, IAttributeSet attrs)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | To set the context |
Android.Util.IAttributeSet | attrs | To set the value for corresponding field |
Properties
Adapter
Gets or sets the adapter.
Declaration
public TreeMapAdapter Adapter { get; set; }
Property Value
Type |
---|
TreeMapAdapter |
ColorValuePath
Gets or sets path of color weight value.
Declaration
public string ColorValuePath { get; set; }
Property Value
Type |
---|
System.String |
DataSource
Gets or sets DataSource of treemap.
Declaration
public object DataSource { get; set; }
Property Value
Type |
---|
System.Object |
DrilldownHeaderStyle
Gets or sets the style for the drill down header.
Declaration
public Style DrilldownHeaderStyle { get; set; }
Property Value
Type |
---|
Style |
EnableDrilldown
Gets or sets a value indicating whether to drill down the treemap or not.
Declaration
public bool EnableDrilldown { get; set; }
Property Value
Type |
---|
System.Boolean |
HighlightOnSelection
Gets or sets a value indicating whether to enable selection.
Declaration
public bool HighlightOnSelection { get; set; }
Property Value
Type |
---|
System.Boolean |
HighlightStrokeColor
Gets or sets selection stroke color.
Declaration
public int HighlightStrokeColor { get; set; }
Property Value
Type |
---|
System.Int32 |
HighlightStrokeWidth
Gets or sets selection stroke width.
Declaration
public double HighlightStrokeWidth { get; set; }
Property Value
Type |
---|
System.Double |
Items
Gets or sets TreeMap Items of TreeMap.
Declaration
public IList<TreeMapItem> Items { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<TreeMapItem> |
LayoutType
Gets or sets treemap layout.
Declaration
public LayoutType LayoutType { get; set; }
Property Value
Type |
---|
LayoutType |
LeafItemColorMapping
Gets or sets colormapping of treemap leaf nodes.
Declaration
public ColorMapping LeafItemColorMapping { get; set; }
Property Value
Type |
---|
ColorMapping |
LeafItemSettings
Gets or sets settings for leafItems.
Declaration
public LeafItemSetting LeafItemSettings { get; set; }
Property Value
Type |
---|
LeafItemSetting |
LegendSettings
Gets or sets settings of legend.
Declaration
public LegendSetting LegendSettings { get; set; }
Property Value
Type |
---|
LegendSetting |
Levels
Gets or sets Levels of TreeMap.
Declaration
public IList<TreeMapLevel> Levels { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<TreeMapLevel> |
SelectedItems
Gets or sets collection of selected items
Declaration
public ObservableCollection<object> SelectedItems { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<System.Object> |
SelectionMode
Gets or sets selection mode
Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
Type |
---|
SelectionMode |
ShowTooltip
Gets or sets a value indicating whether to show tooltip.
Declaration
public bool ShowTooltip { get; set; }
Property Value
Type |
---|
System.Boolean |
TooltipSettings
Gets or sets the TooltipSettings
Declaration
public TooltipSetting TooltipSettings { get; set; }
Property Value
Type |
---|
TooltipSetting |
WeightValuePath
Gets or sets path of Weight value.
Declaration
public string WeightValuePath { get; set; }
Property Value
Type |
---|
System.String |
Methods
Dispose(Boolean)
This method is used to dispose the treemap
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | To check whether the control need to disposed |
OnSizeChanged(Int32, Int32, Int32, Int32)
This method is called size of treemap is changed
Declaration
protected override void OnSizeChanged(int w, int h, int oldw, int oldh)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | w | To set new width |
System.Int32 | h | To set new height |
System.Int32 | oldw | To set old width |
System.Int32 | oldh | To set old height |
Refresh()
This method is used to refresh treemap
Declaration
public void Refresh()
SelectedItems_CollectionChanged(Object, NotifyCollectionChangedEventArgs)
This method is used for selected item collectiuon changed
Declaration
public void SelectedItems_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | To set the sender |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | To set the args |
SelectItem(Object)
This method is used to select the item
Declaration
public void SelectItem(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | To set the object |
Events
ItemSelected
Event for treemap selected.
Declaration
public event EventHandler<TreeMapSelectedEventArgs> ItemSelected
Event Type
Type |
---|
System.EventHandler<TreeMapSelectedEventArgs> |
TooltipDrawing
Event for tooltip drawing
Declaration
public event EventHandler<TooltipDrawingEventArgs> TooltipDrawing
Event Type
Type |
---|
System.EventHandler<TooltipDrawingEventArgs> |
TreeMapSelected
Event for treemap selected.
Declaration
public event EventHandler<TreeMapSelectedEventArgs> TreeMapSelected
Event Type
Type |
---|
System.EventHandler<TreeMapSelectedEventArgs> |