IEditorFormatMap.AddProperties(String, ResourceDictionary) Method

Definition

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).

Applies to