ISmartTagSession 介面
定義智慧標籤工作階段,其中封裝智慧標籤系統之特定叫用的所有相關資訊。
命名空間: Microsoft.VisualStudio.Language.Intellisense
組件: Microsoft.VisualStudio.Language.Intellisense (在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
語法
'宣告
Public Interface ISmartTagSession _
Inherits IIntellisenseSession, IPropertyOwner
public interface ISmartTagSession : IIntellisenseSession,
IPropertyOwner
public interface class ISmartTagSession : IIntellisenseSession,
IPropertyOwner
type ISmartTagSession =
interface
interface IIntellisenseSession
interface IPropertyOwner
end
public interface ISmartTagSession extends IIntellisenseSession, IPropertyOwner
ISmartTagSession 類型會公開下列成員。
屬性
名稱 | 描述 | |
---|---|---|
![]() |
ActionSets | 取得此工作階段所顯示的動作集合。 |
![]() |
ApplicableToSpan | 取得或設定文字緩衝區中適用此工作階段的範圍。這會用來定位任何由智慧標籤展示器所呈現的快顯視窗。 |
![]() |
IconSource | 取得或設定圖示,可用來在這個工作階段的顯示方式。 |
![]() |
IsDismissed | 判斷是否取消工作階段。 (繼承自 IIntellisenseSession)。 |
![]() |
Presenter | 取得用以呈現此工作階段之 IntelliSense 的 IIntellisensePresenter。 (繼承自 IIntellisenseSession)。 |
![]() |
Properties | 取得由房屋擁有者控制的屬性集合。 (繼承自 IPropertyOwner)。 |
![]() |
State | 取得或設定此工作階段的目前狀態。 |
![]() |
TagSpan | 應呈現標籤的範圍 |
![]() |
TagText | 取得或設定要和標籤一起顯示的文字。 |
![]() |
TextView | 取得ITextView觸發此 IntelliSense 工作階段的。 (繼承自 IIntellisenseSession)。 |
![]() |
Type | 此智慧標籤工作階段的型別。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
![]() |
Collapse | 降低最小化狀態的工作階段。如果工作階段沒有這種狀態,就會關閉工作階段。 (繼承自 IIntellisenseSession)。 |
![]() |
Dismiss | 取消工作階段,使展示器終結,並使工作階段從工作階段堆疊中移除。 (繼承自 IIntellisenseSession)。 |
![]() |
GetTriggerPoint(ITextBuffer) | 取得ITrackingPoint IntelliSense 本次觸發的指定ITextBuffer。 (繼承自 IIntellisenseSession)。 |
![]() |
GetTriggerPoint(ITextSnapshot) | 取得根據指定的 ITextSnapshot 觸發此 IntelliSense 工作階段的所在 SnapshotPoint。 (繼承自 IIntellisenseSession)。 |
![]() |
Match | 判斷工作階段中的最佳相符項目,並將選取項目設為此項目。 (繼承自 IIntellisenseSession)。 |
![]() |
Recalculate | 使用相同的觸發點,重新計算有關此工作階段的基礎 IntelliSense 項目。 (繼承自 IIntellisenseSession)。 |
![]() |
Start | 啟動工作階段。 (繼承自 IIntellisenseSession)。 |
回頁首
事件
名稱 | 描述 | |
---|---|---|
![]() |
ApplicableToSpanChanged | 當 ApplicableToSpan 屬性變更時發生。 |
![]() |
Dismissed | 在工作階段取消時發生。 (繼承自 IIntellisenseSession)。 |
![]() |
IconSourceChanged | 發生於工作階段的圖示會變更。 |
![]() |
PresenterChanged | 在此工作階段的 IntelliSense 展示器變更時發生。 (繼承自 IIntellisenseSession)。 |
![]() |
Recalculated | 發生於工作階段會重新計算。 (繼承自 IIntellisenseSession)。 |
![]() |
StateChanged | 此工作階段的狀態變更時發生 |
![]() |
TagSpanChanged | 當 TagSpan 屬性變更時發生。 |
回頁首
範例
如需使用此介面的範例,請參閱逐步解說: 顯示智慧標籤。