combit List & Label 24 - .NET Online Web Help
DictionaryDesignerProperty Constructor
Example 


combit.ListLabel24.DesignerExtensions Namespace > DictionaryDesignerProperty Class : DictionaryDesignerProperty Constructor
Name of the property. This name will be used to identify the property in the project file. Changing the name after reports containing the property have been deployed is a breaking change. To change the name that is displayed to the user, set the DisplayName property instead.
Default value of the property.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal defaultValue As Object _
)
public DictionaryDesignerProperty( 
   string name,
   object defaultValue
)
public:
DictionaryDesignerProperty( 
   String^ name,
   Object^ defaultValue
)

Parameters

name
Name of the property. This name will be used to identify the property in the project file. Changing the name after reports containing the property have been deployed is a breaking change. To change the name that is displayed to the user, set the DisplayName property instead.
defaultValue
Default value of the property.
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 Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

DictionaryDesignerProperty Class
DictionaryDesignerProperty Members