Freigeben über


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)

Syntax

'Declaration
Sub SetProperties ( _
    key As String, _
    properties As ResourceDictionary _
)
void SetProperties(
    string key,
    ResourceDictionary properties
)
void SetProperties(
    String^ key, 
    ResourceDictionary^ properties
)
abstract SetProperties : 
        key:string * 
        properties:ResourceDictionary -> unit 
function SetProperties(
    key : String, 
    properties : ResourceDictionary
)

Parameters

Remarks

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.

.NET Framework Security

See Also

Reference

IEditorFormatMap Interface

Microsoft.VisualStudio.Text.Classification Namespace