Partilhar via


IEditorFormatMap.AddProperties Method

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)

Syntax

'Declaração
Sub AddProperties ( _
    key As String, _
    properties As ResourceDictionary _
)
void AddProperties(
    string key,
    ResourceDictionary properties
)
void AddProperties(
    String^ key, 
    ResourceDictionary^ properties
)
abstract AddProperties : 
        key:string * 
        properties:ResourceDictionary -> unit 
function AddProperties(
    key : String, 
    properties : ResourceDictionary
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

key is null or empty.

ArgumentException

key already exists in the map.

Remarks

key must be a new key and not an existing key.Adding a new type will not cause the FormatMappingChanged event to be raised.

.NET Framework Security

See Also

Reference

IEditorFormatMap Interface

Microsoft.VisualStudio.Text.Classification Namespace