We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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)

public interface IEditorOptionsFactoryService

The IEditorOptionsFactoryService type exposes the following members.

Public propertyGlobalOptionsGets the global IEditorOptions.

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

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

[Import] IEditorOptionsFactoryService factory = null;