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
'宣言
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
- key
Type: System.String
The key.
- properties
Type: System.Windows.ResourceDictionary
The new ResourceDictionary of properties.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.