Class TreeMapSelectionSettings
Sets and gets the options for customizing the selection of the treemap component item.
Inherited Members
Namespace: Syncfusion.Blazor.TreeMap
Assembly: Syncfusion.Blazor.dll
Syntax
public class TreeMapSelectionSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
TreeMapSelectionSettings()
Declaration
public TreeMapSelectionSettings()
Properties
ChildContent
Sets and gets the content of the UI element.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A 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
[Parameter]
public bool Enable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | 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
[Parameter]
public string Fill { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[Parameter]
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
[Parameter]
public double Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |