Partager via


IEditorOptionsFactoryService Interface

Represents a service that gets IEditorOptions for a specified scope or for the global scope.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Public Interface IEditorOptionsFactoryService
public interface IEditorOptionsFactoryService
public interface class IEditorOptionsFactoryService
type IEditorOptionsFactoryService =  interface end
public interface IEditorOptionsFactoryService

The IEditorOptionsFactoryService type exposes the following members.

Properties

  Name Description
Public property GlobalOptions Gets the global IEditorOptions.

Top

Methods

  Name Description
Public method CreateOptions Creates a new instance of IEditorOptions that is not bound to any particular scope.
Public method GetOptions Gets the IEditorOptions for the IPropertyOwner. Buffers and views are property owners. Creates new options for the scope if none have previously been created.

Top

Remarks

This is a MEF component part, and should be imported as follows:

[Import] IEditorOptionsFactoryService factory = null;

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace