Freigeben über


VsCodeWindowClass Class

Allows manipulation of a code window.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsCodeWindowClass

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
<ClassInterfaceAttribute()> _
<GuidAttribute("F5E7E719-1401-11D1-883B-0000F87579D2")> _
Public Class VsCodeWindowClass _
    Implements IVsCodeWindow, VsCodeWindow
[ClassInterfaceAttribute()]
[GuidAttribute("F5E7E719-1401-11D1-883B-0000F87579D2")]
public class VsCodeWindowClass : IVsCodeWindow, 
    VsCodeWindow
[ClassInterfaceAttribute()]
[GuidAttribute(L"F5E7E719-1401-11D1-883B-0000F87579D2")]
public ref class VsCodeWindowClass : IVsCodeWindow, 
    VsCodeWindow
[<ClassInterfaceAttribute()>]
[<GuidAttribute("F5E7E719-1401-11D1-883B-0000F87579D2")>]
type VsCodeWindowClass =  
    class
        interface IVsCodeWindow
        interface VsCodeWindow
    end
public class VsCodeWindowClass implements IVsCodeWindow, VsCodeWindow

The VsCodeWindowClass type exposes the following members.

Constructors

  Name Description
Public method VsCodeWindowClass Creates a new instance of the code window class.

Top

Methods

  Name Description
Public method Close Closes the code window.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
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 GetBuffer Returns the buffer used by all views in the code window.
Public method GetEditorCaption Returns the editor caption to which editors can append custom text.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLastActiveView Returns the last active view of the code window.
Public method GetPrimaryView Returns the top (or primary) view of a split code window.
Public method GetSecondaryView Returns the bottom (or secondary) view of a split code window.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetViewClassID Returns the text view class to change or query.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetBaseEditorCaption Appends custom text to the editor caption.
Public method SetBuffer Sets the text buffer for all views in the code window.
Public method SetViewClassID Sets the text view class to change or query.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

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.TextManager.Interop Namespace