combit List & Label 29 - .NET Hilfe
combit.Reporting.DesignerExtensions Namespace / DictionaryDesignerProperty Klasse / Dictionary Eigenschaft
Beispiele


In diesem Thema
    Dictionary Eigenschaft
    In diesem Thema
    Das Dictionary, das die eigentlichen Auswahlmöglichkeiten für die Combobox im Designer enthält. Das Dictionary enthält Schlüssel/Wert Paare, bei denen der Schlüssel der Wert der Eigenschaft sein wird, wenn der entsprechende Wert (eine für den Benutzer sichtbare Beschreibung) ausgewählt wurde.
    Syntax
    'Deklaration
     
    
    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();
    }
    Beispiele
    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)
    Anforderungen

    Plattformen: Windows 10 (Version 21H2 - 22H2), Windows 11 (21H2 - 23H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    Siehe auch