Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EditorControl Class

Handles the editor window.

This API is not CLS-compliant. 

Object
  Microsoft.VisualStudio.Package.SimpleEditorView
    Microsoft.VisualStudio.Package.EditorControl

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public class EditorControl : SimpleEditorView

The EditorControl type exposes the following members.

  NameDescription
Public methodEditorControlInitializes a new instance of EditorControl with the supplied buffer and control and the main service provider.
Top

  NameDescription
Protected propertyBufferGets or sets the text buffer. (Inherited from SimpleEditorView.)
Protected propertyComponentIdGets or sets the component ID of the editor view. (Inherited from SimpleEditorView.)
Protected propertyComponentManagerGets or sets the component manager for this view. (Inherited from SimpleEditorView.)
Protected propertyControlGets or sets the control that represents the editor window.
Protected propertyMenuCommandService (Inherited from SimpleEditorView.)
Protected propertySiteGets or sets the IServiceProvider for this view. (Inherited from SimpleEditorView.)
Top

  NameDescription
Public methodClosePaneCloses the window and disposes the resources. (Overrides SimpleEditorView.ClosePane().)
Public methodCommitPendingEditCommits any changes made to the file. (Overrides SimpleEditorView.CommitPendingEdit(Int32).)
Public methodCreatePaneWindowCreates the window. (Overrides SimpleEditorView.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr).)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecExecutes the specified command. (Inherited from SimpleEditorView.)
Protected methodExecCommandExecutes specific commands. (Inherited from SimpleEditorView.)
Public methodFContinueMessageLoopCalled during each iteration of the message loop. (Inherited from SimpleEditorView.)
Public methodFDoIdleGives the component a chance to do idle time tasks. (Overrides SimpleEditorView.FDoIdle(UInt32).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFPreTranslateMessageCalled to process or modify the message before it is translated and dispatched. (Inherited from SimpleEditorView.)
Public methodFQueryTerminateCalled when the component manager wishes to know whether the component is in a state in which it can terminate. (Overrides SimpleEditorView.FQueryTerminate(Int32).)
Public methodFReserved1Reserved method. (Inherited from SimpleEditorView.)
Public methodGetDefaultSizeGets the default size of the window. (Inherited from SimpleEditorView.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHwndGetWindowGets a window associated with the component. (Overrides SimpleEditorView.HwndGetWindow(UInt32, UInt32).)
Public methodIsSupportedDetermines whether the toolbox user supports the referenced data object. (Inherited from SimpleEditorView.)
Public methodItemPickedSends notification that an item in the toolbox has been selected (by clicking the mouse or by pressing ENTER). (Inherited from SimpleEditorView.)
Public methodLoadViewStateWhen implemented in a derived class, loads the view state of the window pane. (Inherited from SimpleEditorView.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnActivationChangeCalled when a new object is being activated. (Inherited from SimpleEditorView.)
Public methodOnAppActivateNotifies the component whenever the host application is activated or deactivated. (Overrides SimpleEditorView.OnAppActivate(Int32, UInt32).)
Public methodOnEnterStateNotifies the view when the application enters or exits a given state. (Inherited from SimpleEditorView.)
Public methodOnLoseActivationNotifies the active component that it has lost its active status because the host or another component has become active. (Overrides SimpleEditorView.OnLoseActivation().)
Protected methodQueryCommandStatusGets the status of the specified command. (Inherited from SimpleEditorView.)
Protected methodQueryParameterListGets the parameters for a command. (Inherited from SimpleEditorView.)
Public methodQueryStatusGets the status of the specified commands. (Inherited from SimpleEditorView.)
Public methodSaveViewStateSaves the loaded view state. (Inherited from SimpleEditorView.)
Public methodSetInfoSets the information in the status bar to reflect this view. (Inherited from SimpleEditorView.)
Public methodSetSiteInitializes this view. (Inherited from SimpleEditorView.)
Public methodTerminateCalled by the component manager when it wishes to terminate the view's registration. (Inherited from SimpleEditorView.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTranslateAcceleratorHandles the translation of special navigation keys. (Inherited from SimpleEditorView.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft