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

NameDescription
System_CAPS_pubpropertyGlobalOptions

Gets the global IEditorOptions.

NameDescription
System_CAPS_pubmethodCreateOptions()

Creates a new instance of IEditorOptions that is not bound to any particular scope.

System_CAPS_pubmethodGetOptions(IPropertyOwner)

Gets 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;
Return to top
Show: