IEditorFormatMap.AddProperties(String, ResourceDictionary) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a ResourceDictionary for a new key.
public:
void AddProperties(System::String ^ key, System::Windows::ResourceDictionary ^ properties);
public void AddProperties (string key, System.Windows.ResourceDictionary properties);
abstract member AddProperties : string * System.Windows.ResourceDictionary -> unit
Public Sub AddProperties (key As String, properties As ResourceDictionary)
Parameters
- key
- String
The key.
- properties
- ResourceDictionary
The new properties.
Exceptions
key
already exists in the map.
key
is null or empty.
Remarks
Adding properties will cause the FormatMappingChanged event to be raised.
If key
already exists in the map, then this is equivalent to SetProperties(String, ResourceDictionary).