ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.FeatureDefinition.AddStyle C# (CSharp) Method

AddStyle() public method

Adds a KML style to the list.
public AddStyle ( string key, KMLStyle style ) : void
key string Unique key associated with the style, typically an id, filename or GUID.
style KMLStyle Style description.
return void
        public void AddStyle(string key, KMLStyle style)
        {
            if (styles.ContainsKey(key))
                styles[key] = style;
            else
                styles.Add(key, style);
        }