Tool.Context Property
Gets the editing context for code within the tool.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected ReadOnly Property Context As EditingContext
'Usage
Dim value As EditingContext
value = Me.Context
protected EditingContext Context { get; }
protected:
property EditingContext^ Context {
EditingContext^ get ();
}
protected function get Context () : EditingContext
Property Value
Type: Microsoft.Windows.Design.EditingContext
An EditingContext for code within the tool.
Remarks
The Context property is available only when a tool is active. If the tool is not active, this property will throw an InvalidOperationException.
.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.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace