This documentation is archived and is not being maintained.

IEditorFormatMap.SetProperties Method

Sets the ResourceDictionary of a key.

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

void SetProperties(
	string key,
	ResourceDictionary properties
)

Parameters

key
Type: System.String
The key.
properties
Type: System.Windows.ResourceDictionary
The new ResourceDictionary of properties.

Setting the text properties will cause the FormatMappingChanged event to be raised.

If the ResourceDictionary set does not contain the expected properties, the consumer of the properties may throw an exception.

Show: