IEditorFormatMap::AddProperties Method (String^, ResourceDictionary^)
Visual Studio 2015
Adds a ResourceDictionary for a new key.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Parameters
- key
-
Type:
System::String^
The key.
- properties
-
Type:
System.Windows::ResourceDictionary^
The new properties.
| Exception | Condition |
|---|---|
| ArgumentNullException | key is null or empty. |
| ArgumentException | key already exists in the map. |
key must be a new key and not an existing key.Adding a new type will not cause the FormatMappingChanged event to be raised.
Show: