Class TreeMapSelectionSettings
Sets and gets the options for customizing the selection of the treemap component item.
Inheritance
Namespace: Syncfusion.Blazor.TreeMap
Assembly: Syncfusion.Blazor.dll
Syntax
public class TreeMapSelectionSettings : OwningComponentBase
Constructors
TreeMapSelectionSettings()
Declaration
public TreeMapSelectionSettings()
Properties
ChildContent
Sets and gets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the content of the Treemap UI element. |
Remarks
This property is used to render custom content within the Treemap control.
Enable
Enables or disables the selection functionality in the Treemap component.
Declaration
public bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean indicating whether selection is enabled ( |
Remarks
When set to true
, users can select items within the Treemap.
Fill
Sets and gets the color of the selection when a leaf item is selected in the Treemap component.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color of the selection. |
Remarks
Use this property to define a custom selection color that visually indicates selected items.
Mode
Sets and gets the element in which selection must be done in the Treemap component.
Declaration
public SelectionMode Mode { get; set; }
Property Value
Type | Description |
---|---|
SelectionMode | A SelectionMode enumeration indicating the selection mode. The default is Item. |
Remarks
This property determines whether items or other elements will be selectable within the Treemap.
Opacity
Sets and gets the opacity of the selection when a leaf item is selected in the Treemap component.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the opacity level of the selection. The default is 0.5. |
Remarks
Adjust the opacity to make selected items more or less transparent, enhancing visual feedback.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |