EditorControl 类

定义

重要

此 API 不符合 CLS。

处理编辑器窗口。

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.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type EditorControl = class
    inherit SimpleEditorView
Public Class EditorControl
Inherits SimpleEditorView
继承
EditorControl
属性

构造函数

EditorControl(IServiceProvider, IVsTextLines, Control)

EditorControl使用提供的缓冲区和控件以及主服务提供程序初始化的新实例。

属性

Buffer

获取或设置文本缓冲区。

(继承自 SimpleEditorView)
ComponentId

获取或设置编辑器视图的组件 ID。

(继承自 SimpleEditorView)
ComponentManager

获取或设置此视图的组件管理器。

(继承自 SimpleEditorView)
Control

获取或设置表示编辑器窗口的控件。

MenuCommandService (继承自 SimpleEditorView)
Site

获取或设置 IServiceProvider 此视图的。

(继承自 SimpleEditorView)

方法

ClosePane()

关闭窗口并释放资源。

CommitPendingEdit(Int32)

提交对文件所做的任何更改。

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

创建窗口。

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

执行指定的命令。

(继承自 SimpleEditorView)
FContinueMessageLoop(UInt32, IntPtr, MSG[])

在消息循环的每次迭代过程中调用。

(继承自 SimpleEditorView)
FDoIdle(UInt32)

为组件提供执行空闲时间任务的机会。

FPreTranslateMessage(MSG[])

调用以在转换和调度消息前处理或修改消息。

(继承自 SimpleEditorView)
FQueryTerminate(Int32)

当组件管理器希望知道组件是否处于可以终止的状态时调用。

FReserved1(UInt32, UInt32, IntPtr, IntPtr)

保留方法。

(继承自 SimpleEditorView)
GetDefaultSize(SIZE[])

获取窗口的默认大小。

(继承自 SimpleEditorView)
HwndGetWindow(UInt32, UInt32)

获取与组件关联的窗口。

IsSupported(IDataObject)

确定工具箱用户是否支持引用的数据对象。

(继承自 SimpleEditorView)
ItemPicked(IDataObject)

通过单击鼠标或按 ENTER) ,发送 "工具箱" 中的项已选定 (的通知。

(继承自 SimpleEditorView)
LoadViewState(IStream)

在派生类中实现时,加载窗口窗格的视图状态。

(继承自 SimpleEditorView)
OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)

当激活新对象时调用。

(继承自 SimpleEditorView)
OnAppActivate(Int32, UInt32)

当激活或停用主机应用程序时,通知组件。

OnEnterState(UInt32, Int32)

当应用程序进入或退出给定状态时,通知视图。

(继承自 SimpleEditorView)
OnLoseActivation()

通知活动组件它已失去其活动状态,因为主机或其他组件已激活。

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

获取指定命令的状态。

(继承自 SimpleEditorView)
SaveViewState(IStream)

保存加载的视图状态。

(继承自 SimpleEditorView)
SetInfo()

设置状态栏中的信息以反映此视图。

(继承自 SimpleEditorView)
SetSite(IServiceProvider)

初始化此视图。

(继承自 SimpleEditorView)
Terminate()

在希望终止视图注册时由组件管理器调用。

(继承自 SimpleEditorView)
TranslateAccelerator(MSG[])

处理特殊导航键的翻译。

(继承自 SimpleEditorView)

适用于