KeyColorColorizer.ItemKeyProvider Property
Gets or sets the items’ key provider.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
DevExpress.XtraMap.IColorizerItemKeyProvider | *null* | An object implementing the DevExpress.XtraMap.IColorizerItemKeyProvider interface. |
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-use-piechartdataadapter-to-add-pie-charts-to-a-map-t141324
MapColorizer CreateColorizer() {
KeyColorColorizer colorizer = new KeyColorColorizer() {
ItemKeyProvider = new ArgumentItemKeyProvider()
};
colorizer.Colors.Add(Color.FromArgb(255, 207, 98));
colorizer.Colors.Add(Color.FromArgb(169, 181, 188));
colorizer.Colors.Add(Color.FromArgb(233, 152, 118));
colorizer.Keys.Add(new ColorizerKeyItem() { Key = 1, Name = "Gold" });
colorizer.Keys.Add(new ColorizerKeyItem() { Key = 2, Name = "Silver" });
colorizer.Keys.Add(new ColorizerKeyItem() { Key = 3, Name = "Bronze" });
return colorizer;
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ItemKeyProvider 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.
See Also