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: