共用方式為


IntraTextAdornmentTag 建構函式

定義

多載

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback)

初始化 IntraTextAdornmentTag 的新執行個體。

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<PositionAffinity>)

初始化 IntraTextAdornmentTag 的新執行個體。

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<PositionAffinity>)

初始化 IntraTextAdornmentTag 的新執行個體。

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<PositionAffinity>, Double)

初始化 IntraTextAdornmentTag 的新執行個體。

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback)

初始化 IntraTextAdornmentTag 的新執行個體。

public:
 IntraTextAdornmentTag(System::Windows::UIElement ^ adornment, Microsoft::VisualStudio::Text::Editor::AdornmentRemovedCallback ^ removalCallback);
public IntraTextAdornmentTag (System.Windows.UIElement adornment, Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback removalCallback);
new Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag : System.Windows.UIElement * Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback -> Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag
Public Sub New (adornment As UIElement, removalCallback As AdornmentRemovedCallback)

參數

adornment
UIElement

要顯示在標記位置的裝飾。 不得為 null。

removalCallback
AdornmentRemovedCallback

從檢視中移除裝飾時呼叫。 可能是 Null。

備註

這個建構函式應該只用於取代檢視文字緩衝區中文字的裝飾。

適用於

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<PositionAffinity>)

初始化 IntraTextAdornmentTag 的新執行個體。

public:
 IntraTextAdornmentTag(System::Windows::UIElement ^ adornment, Microsoft::VisualStudio::Text::Editor::AdornmentRemovedCallback ^ removalCallback, Nullable<Microsoft::VisualStudio::Text::PositionAffinity> affinity);
public IntraTextAdornmentTag (System.Windows.UIElement adornment, Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback removalCallback, Microsoft.VisualStudio.Text.PositionAffinity? affinity);
new Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag : System.Windows.UIElement * Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback * Nullable<Microsoft.VisualStudio.Text.PositionAffinity> -> Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag
Public Sub New (adornment As UIElement, removalCallback As AdornmentRemovedCallback, affinity As Nullable(Of PositionAffinity))

參數

adornment
UIElement

要顯示在標記位置的裝飾。 不得為 null。

removalCallback
AdornmentRemovedCallback

從檢視中移除裝飾時呼叫。 可能是 Null。

affinity
Nullable<PositionAffinity>

裝飾的親和性。 裝飾應該為 null 差異,裝飾在檢視的文字緩衝區上具有零長度範圍。

備註

如果未在配置的空格符卷標) 中指定寬度 (和高度,則會使用 和 DesiredSizeadornment可視化樹狀結構中測量裝飾Measure(Size)來決定。 如果在 adornment 加入可視化樹狀結構之前無法判斷其大小,您必須先明確設定 的 adornment 寬度,才能傳回包含它的標記。

適用於

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<PositionAffinity>)

初始化 IntraTextAdornmentTag 的新執行個體。

public:
 IntraTextAdornmentTag(System::Windows::UIElement ^ adornment, Microsoft::VisualStudio::Text::Editor::AdornmentRemovedCallback ^ removalCallback, Nullable<double> topSpace, Nullable<double> baseline, Nullable<double> textHeight, Nullable<double> bottomSpace, Nullable<Microsoft::VisualStudio::Text::PositionAffinity> affinity);
public IntraTextAdornmentTag (System.Windows.UIElement adornment, Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback removalCallback, double? topSpace, double? baseline, double? textHeight, double? bottomSpace, Microsoft.VisualStudio.Text.PositionAffinity? affinity);
new Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag : System.Windows.UIElement * Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback * Nullable<double> * Nullable<double> * Nullable<double> * Nullable<double> * Nullable<Microsoft.VisualStudio.Text.PositionAffinity> -> Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag
Public Sub New (adornment As UIElement, removalCallback As AdornmentRemovedCallback, topSpace As Nullable(Of Double), baseline As Nullable(Of Double), textHeight As Nullable(Of Double), bottomSpace As Nullable(Of Double), affinity As Nullable(Of PositionAffinity))

參數

adornment
UIElement

要顯示在標記位置的裝飾。 不得為 null。

removalCallback
AdornmentRemovedCallback

從檢視中移除裝飾時呼叫。 可能是 Null。

topSpace
Nullable<Double>

中文字 ITextViewLine 頂端與 頂端 ITextViewLine之間所需的空間量。

baseline
Nullable<Double>

空間交涉裝飾的基準。

textHeight
Nullable<Double>

空格交涉裝飾之文字部分的高度。

bottomSpace
Nullable<Double>

ITextViewLine 文字底部與 底部 ITextViewLine之間所需的空間量。

affinity
Nullable<PositionAffinity>

裝飾的親和性。 應該為 Null 差異,裝飾在檢視的文字緩衝區上具有非零長度範圍。

備註

如果未在配置的空格符卷標) 中指定寬度 (和高度,則會使用 和 DesiredSizeadornment可視化樹狀結構中測量裝飾Measure(Size)來決定。 如果在 adornment 加入可視化樹狀結構之前無法判斷其大小,您必須先明確設定 的 adornment 寬度,才能傳回包含它的標記。

適用於

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<PositionAffinity>, Double)

初始化 IntraTextAdornmentTag 的新執行個體。

public IntraTextAdornmentTag (System.Windows.UIElement adornment, Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback removalCallback, double? topSpace, double? baseline, double? textHeight, double? bottomSpace, Microsoft.VisualStudio.Text.PositionAffinity? affinity, double ranking);
new Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag : System.Windows.UIElement * Microsoft.VisualStudio.Text.Editor.AdornmentRemovedCallback * Nullable<double> * Nullable<double> * Nullable<double> * Nullable<double> * Nullable<Microsoft.VisualStudio.Text.PositionAffinity> * double -> Microsoft.VisualStudio.Text.Editor.IntraTextAdornmentTag
Public Sub New (adornment As UIElement, removalCallback As AdornmentRemovedCallback, topSpace As Nullable(Of Double), baseline As Nullable(Of Double), textHeight As Nullable(Of Double), bottomSpace As Nullable(Of Double), affinity As Nullable(Of PositionAffinity), ranking As Double)

參數

adornment
UIElement

要顯示在標記位置的裝飾。 不得為 null。

removalCallback
AdornmentRemovedCallback

從檢視中移除裝飾時呼叫。 可能是 Null。

topSpace
Nullable<Double>

中文字 ITextViewLine 頂端與 頂端 ITextViewLine之間所需的空間量。

baseline
Nullable<Double>

空間交涉裝飾的基準。

textHeight
Nullable<Double>

空格交涉裝飾之文字部分的高度。

bottomSpace
Nullable<Double>

ITextViewLine 文字底部與 底部 ITextViewLine之間所需的空間量。

affinity
Nullable<PositionAffinity>

裝飾的親和性。 應該為 Null 差異,裝飾在檢視的文字緩衝區上具有非零長度範圍。

ranking
Double

用來排序一致裝飾的系結斷器。

備註

如果未在配置的空格符卷標) 中指定寬度 (和高度,則會使用 和 DesiredSizeadornment可視化樹狀結構中測量裝飾Measure(Size)來決定。 如果在 adornment 加入可視化樹狀結構之前無法判斷其大小,您必須先明確設定 的 adornment 寬度,才能傳回包含它的標記。

適用於