IEditorOptions.IsOptionDefined Method (String, Boolean)
Determines whether the specified option is defined.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaración
Function IsOptionDefined ( _
optionId As String, _
localScopeOnly As Boolean _
) As Boolean
bool IsOptionDefined(
string optionId,
bool localScopeOnly
)
bool IsOptionDefined(
String^ optionId,
bool localScopeOnly
)
abstract IsOptionDefined :
optionId:string *
localScopeOnly:bool -> bool
function IsOptionDefined(
optionId : String,
localScopeOnly : boolean
) : boolean
Parameters
- optionId
Type: System.String
The ID of the option.
- localScopeOnly
Type: System.Boolean
true to search only in this scope, false to try parent scopes as well. This setting has no effect if the current scope is global.
Return Value
Type: System.Boolean
true if the option is defined, otherwise false.
.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.