Back to Devexpress

SunburstItem.Tag Property

windowsforms-devexpress-dot-xtratreemap-dot-sunburstitem-a01fa68d.md

latest3.3 KB
Original Source

SunburstItem.Tag Property

SECURITY-RELATED CONSIDERATIONS

Deserializing layout settings from untrusted resources may create security issues. Serializable System.Object properties that contain custom type values are not (de)serialized automatically. Review the following help topic for information on how to (de)serialize custom type values: Safe Deserialization.

Gets or sets the object that contains data related to a sunburst item.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
[DefaultValue(null)]
[XtraSerializableProperty]
public object Tag { get; set; }
vb
<DefaultValue(Nothing)>
<XtraSerializableProperty>
Public Property Tag As Object

Property Value

TypeDefaultDescription
Objectnull

A Object that contains data about the sunburst item.

|

Remarks

Use the Tag property to store additional (custom) data associated with a sunburst item.

Note

If a sunburst is bound to data, the Tag property is automatically assigned to the underlying object used to create this sunburst item.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Tag property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.cs#L117

csharp
if(Interactivity.CanSetMasterFilter)
        Interactivity.SetMasterFilter(hi.SunburstItem.Tag as DashboardFlatDataSourceRow);
}

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.vb#L126

vb
If Interactivity.CanSetMasterFilter Then
    Interactivity.SetMasterFilter(TryCast(hi.SunburstItem.Tag, DashboardFlatDataSourceRow))
End If

See Also

SunburstItem Class

SunburstItem Members

DevExpress.XtraTreeMap Namespace