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)

'Declaration
Sub SetProperties ( _
	key As String, _
	properties As ResourceDictionary _
)

Parameters

key
Type: String

The key.

properties
Type: 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft