次の方法で共有


EditorControl Class

Handles the editor window.

This API is not CLS-compliant. 

Inheritance Hierarchy

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

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

Syntax

'宣言
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(True)> _
Public Class EditorControl _
    Inherits SimpleEditorView
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public class EditorControl : SimpleEditorView

The EditorControl type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Protected property Buffer Gets or sets the text buffer. (Inherited from SimpleEditorView.)
Protected property ComponentId Gets or sets the component ID of the editor view. (Inherited from SimpleEditorView.)
Protected property ComponentManager Gets or sets the component manager for this view. (Inherited from SimpleEditorView.)
Protected property Control Gets or sets the control that represents the editor window.
Protected property MenuCommandService (Inherited from SimpleEditorView.)
Protected property Site Gets or sets the IServiceProvider for this view. (Inherited from SimpleEditorView.)

Top

Methods

  Name Description
Public method ClosePane Closes the window and disposes the resources. (Overrides SimpleEditorView.ClosePane().)
Public method CommitPendingEdit Commits any changes made to the file. (Overrides SimpleEditorView.CommitPendingEdit(Int32%).)
Public method CreatePaneWindow Creates the window. (Overrides SimpleEditorView.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr%).)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Exec Executes the specified command. (Inherited from SimpleEditorView.)
Protected method ExecCommand Executes specific commands. (Inherited from SimpleEditorView.)
Public method FContinueMessageLoop Called during each iteration of the message loop. (Inherited from SimpleEditorView.)
Public method FDoIdle Gives the component a chance to do idle time tasks. (Overrides SimpleEditorView.FDoIdle(UInt32).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FPreTranslateMessage Called to process or modify the message before it is translated and dispatched. (Inherited from SimpleEditorView.)
Public method FQueryTerminate Called when the component manager wishes to know whether the component is in a state in which it can terminate. (Overrides SimpleEditorView.FQueryTerminate(Int32).)
Public method FReserved1 Reserved method. (Inherited from SimpleEditorView.)
Public method GetDefaultSize Gets the default size of the window. (Inherited from SimpleEditorView.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HwndGetWindow Gets a window associated with the component. (Overrides SimpleEditorView.HwndGetWindow(UInt32, UInt32).)
Public method IsSupported Determines whether the toolbox user supports the referenced data object. (Inherited from SimpleEditorView.)
Public method ItemPicked Sends notification that an item in the toolbox has been selected (by clicking the mouse or by pressing ENTER). (Inherited from SimpleEditorView.)
Public method LoadViewState When implemented in a derived class, loads the view state of the window pane. (Inherited from SimpleEditorView.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnActivationChange Called when a new object is being activated. (Inherited from SimpleEditorView.)
Public method OnAppActivate Notifies the component whenever the host application is activated or deactivated. (Overrides SimpleEditorView.OnAppActivate(Int32, UInt32).)
Public method OnEnterState Notifies the view when the application enters or exits a given state. (Inherited from SimpleEditorView.)
Public method OnLoseActivation Notifies the active component that it has lost its active status because the host or another component has become active. (Overrides SimpleEditorView.OnLoseActivation().)
Protected method QueryCommandStatus Gets the status of the specified command. (Inherited from SimpleEditorView.)
Protected method QueryParameterList Gets the parameters for a command. (Inherited from SimpleEditorView.)
Public method QueryStatus Gets the status of the specified commands. (Inherited from SimpleEditorView.)
Public method SaveViewState Saves the loaded view state. (Inherited from SimpleEditorView.)
Public method SetInfo Sets the information in the status bar to reflect this view. (Inherited from SimpleEditorView.)
Public method SetSite Initializes this view. (Inherited from SimpleEditorView.)
Public method Terminate Called by the component manager when it wishes to terminate the view's registration. (Inherited from SimpleEditorView.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TranslateAccelerator Handles the translation of special navigation keys. (Inherited from SimpleEditorView.)

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.Package Namespace