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
'Declaration
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: StringThe ID of the option.
localScopeOnly
Type: Booleantrue 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: 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.