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)

type IEditorOptionsFactoryService =  interface end

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;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft