Compartilhar via


VsTextPackageClass Class

Definition

Provides general services for anyone wanting information about the active text views. See IVsTextManager.

public ref class VsTextPackageClass : Microsoft::VisualStudio::TextManager::Interop::VsTextPackage
[Windows::Foundation::Metadata::WebHostHidden]
class VsTextPackageClass : Microsoft::VisualStudio::TextManager::Interop::VsTextPackage
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.Guid("F5E7E720-1401-11D1-883B-0000F87579D2")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsTextPackageClass : Microsoft.VisualStudio.TextManager.Interop.VsTextPackage
[System.Runtime.InteropServices.Guid("F5E7E720-1401-11D1-883B-0000F87579D2")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsTextPackageClass : Microsoft.VisualStudio.TextManager.Interop.VsTextPackage
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("F5E7E720-1401-11D1-883B-0000F87579D2")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsTextPackageClass = class
    interface IVsTextManager
    interface VsTextPackage
[<System.Runtime.InteropServices.Guid("F5E7E720-1401-11D1-883B-0000F87579D2")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsTextPackageClass = class
    interface VsTextPackage
    interface IVsTextManager
Public Class VsTextPackageClass
Implements VsTextPackage
Inheritance
VsTextPackageClass
Attributes
Implements

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.

Constructors

VsTextPackageClass()

Creates a new instance of the class.

Methods

AdjustFileChangeIgnoreCount(IVsTextBuffer, Int32)

Increases or decreases the ignore count for file changes.

AttemptToCheckOutBufferFromScc(IVsUserData, Int32)

Method information not provided. Do not use.

AttemptToCheckOutBufferFromScc2(String, Int32, Int32)

Attempts to check out a file from source code control.

CreateSelectionAction(IVsTextBuffer, IVsTextSelectionAction)

Method information not provided. Do not use.

EnumBuffers(IVsEnumTextBuffers)

Enumerates text buffers. Not yet implemented.

EnumIndependentViews(IVsTextBuffer, IVsEnumIndependentViews)

Enumerates independent view.

EnumLanguageServices(IVsEnumGUID)

Enumerates the registered language service ids.

EnumViews(IVsTextBuffer, IVsEnumTextViews)

Enumerates views that are provided with the core editor and are associated with a particular text buffer.

GetActiveView(Int32, IVsTextBuffer, IVsTextView)

Returns the active or previously active view.

GetBufferSccStatus(IVsUserData, Int32)

Method information not provided. Do not use.

GetBufferSccStatus2(String, Int32, Int32)

Returns information on whether a buffer is under source code control and, if so, whether the file is checked in.

GetMarkerTypeCount(Int32)

Returns the number of registered marker types within all buffers associated with the core text editor.

GetMarkerTypeInterface(Int32, IVsTextMarkerType)

Maps a numeric marker type ID to an interface that can be used to probe for specific information.

GetPerLanguagePreferences(LANGPREFERENCES[])

Method information not provided. Do not use.

GetRegisteredMarkerTypeID(Guid, Int32)

Returns a registered marker type.

GetShortcutManager(IVsShortcutManager)

Returns the shortcut manager.

GetUserPreferences(VIEWPREFERENCES[], FRAMEPREFERENCES[], LANGPREFERENCES[], FONTCOLORPREFERENCES[])

Returns the user preferences, such as tab usage, indent size and widget margin presence for the view, frame, and language service.

IgnoreNextFileChange(IVsTextBuffer)

[in] Pointer to the IVsTextBuffer interface.

MapFilenameToLanguageSID(String, Guid)

Given a file name, determines the registered language service, if one exists, that understands it.

NavigateToLineAndColumn(IVsTextBuffer, Guid, Int32, Int32, Int32, Int32)

Finds or creates an appropriate view on the specified buffer and places the selection at the specified location.

NavigateToPosition(IVsTextBuffer, Guid, Int32, Int32)

Finds or creates an appropriate view on the specified buffer and puts the selection on the specified linear position.

RegisterBuffer(IVsTextBuffer)

Registers a text buffer with the text manager.

RegisterIndependentView(Object, IVsTextBuffer)

Registers a view from a source other than the core editor.

RegisterView(IVsTextView, IVsTextBuffer)

Method information not provided. Do not use.

SetFileChangeAdvise(String, Int32)

Method information not provided. Do not use.

SetPerLanguagePreferences(LANGPREFERENCES[])

Method information not provided. Do not use.

SetUserPreferences(VIEWPREFERENCES[], FRAMEPREFERENCES[], LANGPREFERENCES[], FONTCOLORPREFERENCES[])

Sets user preferences.

SuspendFileChangeAdvise(String, Int32)

Suspends file change notifications for a given file.

UnregisterBuffer(IVsTextBuffer)

Unregisters a buffer.

UnregisterIndependentView(Object, IVsTextBuffer)

Unregisters an externally-created view.

UnregisterView(IVsTextView)

Method information not provided. Do not use.

Applies to