AddProperties Method
Collapse the table of content
Expand the table of content

IEditorFormatMap.AddProperties Method (String, ResourceDictionary)

 

Adds a ResourceDictionary for a new key.

Namespace:   Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

void AddProperties(
	string key,
	ResourceDictionary properties
)

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.

Return to top
Show:
© 2016 Microsoft