IEditorOptionsFactoryService.GetOptions Method
Gets the IEditorOptions for the IPropertyOwner. Buffers and views are property owners. Creates new options for the scope if none have previously been created.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
声明
Function GetOptions ( _
scope As IPropertyOwner _
) As IEditorOptions
IEditorOptions GetOptions(
IPropertyOwner scope
)
IEditorOptions^ GetOptions(
IPropertyOwner^ scope
)
abstract GetOptions :
scope:IPropertyOwner -> IEditorOptions
function GetOptions(
scope : IPropertyOwner
) : IEditorOptions
Parameters
- scope
Type: Microsoft.VisualStudio.Utilities.IPropertyOwner
The IPropertyOwner.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.IEditorOptions
The IEditorOptions for the given IPropertyOwner.
Remarks
This method returns a set of options for a given scope. Options defined in this scope will not affect options in its ancestor scopes. If you try to get an option in this scope, the method checks for any overridden values in the scope. If there are none, it gets the value from the options of its parent scope. The set of applicable options may change depending on the scope. An option defined in a text view scope will not apply to text buffers.
.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.