Skip to main content
A newer version of this page is available. .

ColorizerKeyItem.Name Property

Gets or sets the key value of the ColorizerKeyItem.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll

Declaration

public string Name { get; set; }

Property Value

Type Description
String

A Object.

Example

To colorize map items using the KeyColorColorizer do the following.

  1. Create a KeyColorColorizer object and assign it to the VectorLayer.Colorizer property.
  2. Specify the KeyColorColorizer.ItemKeyProvider property.
  3. Customize the MapColorizer.Colors collection.
  4. Add several ColorizerKeyItem items to the KeyColorColorizer.Keys collection. Note that if keys are not specified, they will be generated automatically.
<dxm:VectorLayer.Colorizer>
    <dxm:KeyColorColorizer>
        <dxm:KeyColorColorizer.ItemKeyProvider>
            <dxm:IdItemKeyProvider/>
        </dxm:KeyColorColorizer.ItemKeyProvider>
        <dxm:KeyColorColorizer.Colors>
            <Color>#FFFFCF62</Color>
            <Color>#FFA9B5BC</Color>
            <Color>#FFE99876</Color>
        </dxm:KeyColorColorizer.Colors>
        <dxm:KeyColorColorizer.Keys>
            <dxm:ColorizerKeyItem Name="Gold">
                <dxm:ColorizerKeyItem.Key>
                    <sys:Int32>1</sys:Int32>
                </dxm:ColorizerKeyItem.Key>
            </dxm:ColorizerKeyItem>
            <dxm:ColorizerKeyItem Name="Silver">
                <dxm:ColorizerKeyItem.Key>
                    <sys:Int32>2</sys:Int32>
                </dxm:ColorizerKeyItem.Key>
            </dxm:ColorizerKeyItem>
            <dxm:ColorizerKeyItem Name="Bronze">
                <dxm:ColorizerKeyItem.Key>
                    <sys:Int32>3</sys:Int32>
                </dxm:ColorizerKeyItem.Key>
            </dxm:ColorizerKeyItem>
        </dxm:KeyColorColorizer.Keys>
    </dxm:KeyColorColorizer>
</dxm:VectorLayer.Colorizer>

The following code snippets (auto-collected from DevExpress Examples) contain references to the Name 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