共用方式為


IVsTextViewIntellisenseHost Interface

Core editor provided intellisense host for standard editor views.

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

Syntax

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("0816A38B-2B41-4D2A-B1FF-23C1E28D8A18")> _
Public Interface IVsTextViewIntellisenseHost _
    Inherits IVsIntellisenseHost
[InterfaceTypeAttribute()]
[GuidAttribute("0816A38B-2B41-4D2A-B1FF-23C1E28D8A18")]
public interface IVsTextViewIntellisenseHost : IVsIntellisenseHost
[InterfaceTypeAttribute()]
[GuidAttribute(L"0816A38B-2B41-4D2A-B1FF-23C1E28D8A18")]
public interface class IVsTextViewIntellisenseHost : IVsIntellisenseHost
[<InterfaceTypeAttribute()>]
[<GuidAttribute("0816A38B-2B41-4D2A-B1FF-23C1E28D8A18")>]
type IVsTextViewIntellisenseHost =  
    interface
        interface IVsIntellisenseHost
    end
public interface IVsTextViewIntellisenseHost extends IVsIntellisenseHost

The IVsTextViewIntellisenseHost type exposes the following members.

Methods

  Name Description
Public method AfterCompletorCommit() Handles any cleanup actions after a call to the completor. (Inherited from IVsIntellisenseHost.)
Public method AfterCompletorCommit()
Public method BeforeCompletorCommit() Handles actions before committing the completor call. (Inherited from IVsIntellisenseHost.)
Public method BeforeCompletorCommit()
Public method Exec(Guid%, UInt32, UInt32, Object%, Object%) Executes the specified command. (Inherited from IVsIntellisenseHost.)
Public method Exec(Guid%, UInt32, UInt32, Object%, Object%)
Public method GetContextBuffer(IVsTextLines%) Gets the context buffer for IntelliSense. (Inherited from IVsIntellisenseHost.)
Public method GetContextBuffer(IVsTextLines%) The context buffer.
Public method GetContextCaretPos(Int32%, Int32%) Gets the caret position relative to the context buffer. (Inherited from IVsIntellisenseHost.)
Public method GetContextCaretPos(Int32%, Int32%)
Public method GetContextFocalPoint(array<TextSpan[], Int32%) Returns the position in the context buffer that is considered the starting context point. (Inherited from IVsIntellisenseHost.)
Public method GetContextFocalPoint(array<TextSpan[], Int32%) The "focal point" or position in the context buffer that should be considered the starting context point
Public method GetContextLocation(Int32, Int32, Int32, array<RECT[], Int32%) Gets the bounding rectangle for the IntelliSense context. (Inherited from IVsIntellisenseHost.)
Public method GetContextLocation(Int32, Int32, Int32, array<RECT[], Int32%)
Public method GetContextSelection(array<TextSpan[]) Gets the selection relative to the context buffer. (Inherited from IVsIntellisenseHost.)
Public method GetContextSelection(array<TextSpan[])
Public method GetHostFlags(UInt32%) Gets the IntelliSense host flags from the IntellisenseHostFlags enumeration. (Inherited from IVsIntellisenseHost.)
Public method GetHostFlags(UInt32%) Host flags (see IntellisenseHostFlags enum above)
Public method GetHostWindow(IntPtr%) Returns a handle to the host window. (Inherited from IVsIntellisenseHost.)
Public method GetHostWindow(IntPtr%)
Public method GetServiceProvider(IServiceProvider%) Gets an IntelliSense service object. (Inherited from IVsIntellisenseHost.)
Public method GetServiceProvider(IServiceProvider%)
Public method GetSmartTagRect(array<RECT[]) Returns the smart tag window. (Inherited from IVsIntellisenseHost.)
Public method GetSmartTagRect(array<RECT[])
Public method GetSubjectCaretPos(Int32%) Gets the caret position for the text upon which IntelliSense operates. (Inherited from IVsIntellisenseHost.)
Public method GetSubjectCaretPos(Int32%)
Public method GetSubjectSelection(Int32%, Int32%) Gets the selection relative to the text upon which IntelliSense operates. (Inherited from IVsIntellisenseHost.)
Public method GetSubjectSelection(Int32%, Int32%)
Public method GetSubjectText(String%) Gets the text upon which IntelliSense operates. (Inherited from IVsIntellisenseHost.)
Public method GetSubjectText(String%) The text upon which Intellisense should operate.
Public method HighlightMatchingBrace(UInt32, UInt32, array<TextSpan[]) Highlights the matching brace. (Inherited from IVsIntellisenseHost.)
Public method HighlightMatchingBrace(UInt32, UInt32, array<TextSpan[])
Public method QueryStatus(Guid%, UInt32, array<OLECMD[], array<OLECMDTEXT[]) Queries this object for the status of one or more commands generated by user interface events. (Inherited from IVsIntellisenseHost.)
Public method QueryStatus(Guid%, UInt32, array<OLECMD[], array<OLECMDTEXT[])
Public method ReplaceSubjectTextSpan(Int32, Int32, String) Edits the text upon which IntelliSense operates. (Inherited from IVsIntellisenseHost.)
Public method ReplaceSubjectTextSpan(Int32, Int32, String) Editing subject text. Return E_FAIL (or something) if text contains CR/LFs and flags contain IHF_SINGLELINESUBJECT.
Public method SetContextCaretPos(Int32, Int32) Sets the caret position relative to the context buffer. (Inherited from IVsIntellisenseHost.)
Public method SetContextCaretPos(Int32, Int32) Caret/selection setting relative to the context buffer. Any editing should be done via the buffer.
Public method SetContextSelection(Int32, Int32, Int32, Int32) Sets the selection relative to the context buffer. (Inherited from IVsIntellisenseHost.)
Public method SetContextSelection(Int32, Int32, Int32, Int32)
Public method SetSubjectCaretPos(Int32) Sets the caret position relative to the text upon which IntelliSense operates. (Inherited from IVsIntellisenseHost.)
Public method SetSubjectCaretPos(Int32) Caret/selection management for subject text. All return E_NOTIMPL if IHF_NOSEPARATESUBJECT is set in flags.
Public method SetSubjectFromPrimaryBuffer Sets the span from the primary buffer.
Public method SetSubjectSelection(Int32, Int32) Sets the selection relative to the text upon which IntelliSense operates. (Inherited from IVsIntellisenseHost.)
Public method SetSubjectSelection(Int32, Int32)
Public method UpdateCompletionStatus(IVsCompletionSet, UInt32) Updates the completion status user interface (UI). (Inherited from IVsIntellisenseHost.)
Public method UpdateCompletionStatus(IVsCompletionSet, UInt32) Intellisense UI handling.
Public method UpdateSmartTagWindow(IVsSmartTagTipWindow, UInt32) Updates the smart tag window. (Inherited from IVsIntellisenseHost.)
Public method UpdateSmartTagWindow(IVsSmartTagTipWindow, UInt32)
Public method UpdateTipWindow(IVsTipWindow, UInt32) Updates the tip window. (Inherited from IVsIntellisenseHost.)
Public method UpdateTipWindow(IVsTipWindow, UInt32)

Top

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace