Udostępnij za pośrednictwem


EditorControl Class

Definition

Important

This API is not CLS-compliant.

This class wraps a managed WinForm control and uses that as the editor window.

public ref class EditorControl : Microsoft::VisualStudio::Package::SimpleEditorView
[Windows::Foundation::Metadata::WebHostHidden]
class EditorControl : Microsoft::VisualStudio::Package::SimpleEditorView
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public class EditorControl : Microsoft.VisualStudio.Package.SimpleEditorView
[System.Runtime.InteropServices.ComVisible(true)]
public class EditorControl : Microsoft.VisualStudio.Package.SimpleEditorView
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type EditorControl = class
    inherit SimpleEditorView
[<System.Runtime.InteropServices.ComVisible(true)>]
type EditorControl = class
    inherit SimpleEditorView
Public Class EditorControl
Inherits SimpleEditorView
Inheritance
EditorControl
Attributes

Constructors

EditorControl(IServiceProvider, IVsTextLines, Control)

Initializes a new instance of EditorControl with the supplied buffer and control and the main service provider.

Properties

Buffer

Gets or sets the text buffer.

(Inherited from SimpleEditorView)
ComponentId

Gets or sets the component ID of the editor view.

(Inherited from SimpleEditorView)
ComponentManager

Gets or sets the component manager for this view.

(Inherited from SimpleEditorView)
Control

Gets or sets the control that represents the editor window.

MenuCommandService (Inherited from SimpleEditorView)
Site

Gets or sets the IServiceProvider for this view.

(Inherited from SimpleEditorView)

Methods

ClosePane()

Closes the window and disposes the resources.

CommitPendingEdit(Int32)

Commits any changes made to the file.

CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr)

Creates the window.

Exec(Guid, UInt32, UInt32, IntPtr, IntPtr)

Executes the specified command.

(Inherited from SimpleEditorView)
FContinueMessageLoop(UInt32, IntPtr, MSG[])

Called during each iteration of the message loop.

(Inherited from SimpleEditorView)
FDoIdle(UInt32)

Gives the component a chance to do idle time tasks.

FPreTranslateMessage(MSG[])

Called to process or modify the message before it is translated and dispatched.

(Inherited from SimpleEditorView)
FQueryTerminate(Int32)

Called when the component manager wishes to know whether the component is in a state in which it can terminate.

FReserved1(UInt32, UInt32, IntPtr, IntPtr)

Reserved method.

(Inherited from SimpleEditorView)
GetDefaultSize(SIZE[])

Gets the default size of the window.

(Inherited from SimpleEditorView)
HwndGetWindow(UInt32, UInt32)

Gets a window associated with the component.

IsSupported(IDataObject)

Determines whether the toolbox user supports the referenced data object.

(Inherited from SimpleEditorView)
ItemPicked(IDataObject)

Sends notification that an item in the toolbox has been selected (by clicking the mouse or by pressing ENTER).

(Inherited from SimpleEditorView)
LoadViewState(IStream)

When implemented in a derived class, loads the view state of the window pane.

(Inherited from SimpleEditorView)
OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)

Called when a new object is being activated.

(Inherited from SimpleEditorView)
OnAppActivate(Int32, UInt32)

Notifies the component whenever the host application is activated or deactivated.

OnEnterState(UInt32, Int32)

Notifies the view when the application enters or exits a given state.

(Inherited from SimpleEditorView)
OnLoseActivation()

Notifies the active component that it has lost its active status because the host or another component has become active.

QueryStatus(Guid, UInt32, OLECMD[], IntPtr)

IOleCommandTarget implementation

(Inherited from SimpleEditorView)
SaveViewState(IStream)

Saves the loaded view state.

(Inherited from SimpleEditorView)
SetInfo()

Sets the information in the status bar to reflect this view.

(Inherited from SimpleEditorView)
SetSite(IServiceProvider)

Initializes this view.

(Inherited from SimpleEditorView)
Terminate()

Called by the component manager when it wishes to terminate the view's registration.

(Inherited from SimpleEditorView)
TranslateAccelerator(MSG[])

Handles the translation of special navigation keys.

(Inherited from SimpleEditorView)

Applies to