combit List & Label 25 - .NET Online Web Help
Dictionary Property
Example 


combit.ListLabel25.DesignerExtensions Namespace > DictionaryDesignerProperty Class : Dictionary Property
The dictionary that contains the actual choices for the combo box within the designer. The dictionary contains key/value pairs where key will be the value of the property if the respective value (a user visible description) is chosen.
Syntax
'Declaration
 
Public ReadOnly Property Dictionary As Dictionary(Of Object,String)
public Dictionary<object,string> Dictionary {get;}
public:
property Dictionary<Object^,String^>^ Dictionary {
   Dictionary<Object^,String^>^ get();
}
Example
DictionaryDesignerProperty MapProperty = new DictionaryDesignerProperty("MapType", MapType.GoogleHybrid);

MapProperty.DisplayName = Resources.MapType;
MapProperty.Description = Resources.MapTypeDescr;
MapProperty.Dictionary.Add(MapType.GoogleMap, "Google Map");
MapProperty.Dictionary.Add(MapType.GoogleSatellite, "Google Satellite");
MapProperty.Dictionary.Add(MapType.GoogleHybrid, "Google Hybrid");
MapProperty.Dictionary.Add(MapType.BingMap_New, "Bing Map");
MapProperty.Dictionary.Add(MapType.BingSatellite, "Bing Satellite");
MapProperty.Dictionary.Add(MapType.BingHybrid, "Bing Hybrid");
MapProperty.Dictionary.Add(MapType.OpenStreetMap, "Open Street Map");
DesignerProperties.Add(MapProperty);
Dim MapProperty As New DictionaryDesignerProperty("MapType", MapType.GoogleHybrid)

MapProperty.DisplayName = Resources.MapType
MapProperty.Description = Resources.MapTypeDescr
MapProperty.Dictionary.Add(MapType.GoogleMap, "Google Map")
MapProperty.Dictionary.Add(MapType.GoogleSatellite, "Google Satellite")
MapProperty.Dictionary.Add(MapType.GoogleHybrid, "Google Hybrid")
MapProperty.Dictionary.Add(MapType.BingMap_New, "Bing Map")
MapProperty.Dictionary.Add(MapType.BingSatellite, "Bing Satellite")
MapProperty.Dictionary.Add(MapType.BingHybrid, "Bing Hybrid")
MapProperty.Dictionary.Add(MapType.OpenStreetMap, "Open Street Map")
DesignerProperties.Add(MapProperty)
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

DictionaryDesignerProperty Class
DictionaryDesignerProperty Members