Compartilhar via


SimpleEditorView Class

Definition

Important

This API is not CLS-compliant.

This class View provides an abstract base class for simple editor views that follow the VS simple embedding model.

public ref class SimpleEditorView abstract : Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget, Microsoft::VisualStudio::OLE::Interop::IOleComponent, Microsoft::VisualStudio::Shell::Interop::IVsStatusbarUser, Microsoft::VisualStudio::Shell::Interop::IVsToolboxUser, Microsoft::VisualStudio::Shell::Interop::IVsWindowPane, Microsoft::VisualStudio::Shell::Interop::IVsWindowPaneCommit
[Windows::Foundation::Metadata::WebHostHidden]
public ref class SimpleEditorView abstract : Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget, Microsoft::VisualStudio::OLE::Interop::IOleComponent, Microsoft::VisualStudio::Shell::Interop::IVsStatusbarUser, Microsoft::VisualStudio::Shell::Interop::IVsToolboxUser, Microsoft::VisualStudio::Shell::Interop::IVsWindowPane, Microsoft::VisualStudio::Shell::Interop::IVsWindowPaneCommit
[Windows::Foundation::Metadata::WebHostHidden]
class SimpleEditorView abstract : Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget, Microsoft::VisualStudio::OLE::Interop::IOleComponent, Microsoft::VisualStudio::Shell::Interop::IVsStatusbarUser, Microsoft::VisualStudio::Shell::Interop::IVsToolboxUser, Microsoft::VisualStudio::Shell::Interop::IVsWindowPane, Microsoft::VisualStudio::Shell::Interop::IVsWindowPaneCommit
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class SimpleEditorView : Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget, Microsoft.VisualStudio.OLE.Interop.IOleComponent, Microsoft.VisualStudio.Shell.Interop.IVsStatusbarUser, Microsoft.VisualStudio.Shell.Interop.IVsToolboxUser, Microsoft.VisualStudio.Shell.Interop.IVsWindowPane, Microsoft.VisualStudio.Shell.Interop.IVsWindowPaneCommit
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class SimpleEditorView : Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget, Microsoft.VisualStudio.OLE.Interop.IOleComponent, Microsoft.VisualStudio.Shell.Interop.IVsStatusbarUser, Microsoft.VisualStudio.Shell.Interop.IVsToolboxUser, Microsoft.VisualStudio.Shell.Interop.IVsWindowPane, Microsoft.VisualStudio.Shell.Interop.IVsWindowPaneCommit
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SimpleEditorView = class
    interface IOleCommandTarget
    interface IVsWindowPane
    interface IVsToolboxUser
    interface IVsStatusbarUser
    interface IVsWindowPaneCommit
    interface IOleComponent
[<System.Runtime.InteropServices.ComVisible(true)>]
type SimpleEditorView = class
    interface IOleCommandTarget
    interface IVsWindowPane
    interface IVsToolboxUser
    interface IVsStatusbarUser
    interface IVsWindowPaneCommit
    interface IOleComponent
Public MustInherit Class SimpleEditorView
Implements IOleCommandTarget, IOleComponent, IVsStatusbarUser, IVsToolboxUser, IVsWindowPane, IVsWindowPaneCommit
Inheritance
SimpleEditorView
Derived
Attributes
Implements

Constructors

SimpleEditorView(IVsTextLines)

Initializes a new instance of SimpleEditorView for the supplied text buffer.

Properties

Buffer

Gets or sets the text buffer.

ComponentId

Gets or sets the component ID of the editor view.

ComponentManager

Gets or sets the component manager for this view.

MenuCommandService
Site

Gets or sets the IServiceProvider for this view.

Methods

ClosePane()

Closes the window and unregisters the component.

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.

FContinueMessageLoop(UInt32, IntPtr, MSG[])

Called during each iteration of the message loop.

FDoIdle(UInt32)

Called to do idle time tasks.

FPreTranslateMessage(MSG[])

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

FQueryTerminate(Int32)

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

FReserved1(UInt32, UInt32, IntPtr, IntPtr)

Reserved method.

GetDefaultSize(SIZE[])

Gets the default size of the window.

HwndGetWindow(UInt32, UInt32)

Gets a window associated with the component.

IsSupported(IDataObject)

Determines whether the toolbox user supports the referenced data object.

ItemPicked(IDataObject)

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

LoadViewState(IStream)

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

OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)

Called when a new object is being activated.

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.

OnLoseActivation()

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

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

IOleCommandTarget implementation

SaveViewState(IStream)

Saves the loaded view state.

SetInfo()

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

SetSite(IServiceProvider)

Initializes this view.

Terminate()

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

TranslateAccelerator(MSG[])

Handles the translation of special navigation keys.

Applies to