Freigeben über


IntraTextAdornmentTag Konstruktoren

Definition

Überlädt

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback)

Initialisiert eine neue Instanz von IntraTextAdornmentTag.

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<PositionAffinity>)

Initialisiert eine neue Instanz von IntraTextAdornmentTag.

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

Initialisiert eine neue Instanz von IntraTextAdornmentTag.

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

Initialisiert eine neue Instanz von IntraTextAdornmentTag.

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback)

Initialisiert eine neue Instanz von 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)

Parameter

adornment
UIElement

Die An der Position des Tags anzuzeigende Verzierung. Darf nicht NULL sein.

removalCallback
AdornmentRemovedCallback

Wird aufgerufen, wenn das Zusatzelement aus der Ansicht entfernt wird. Ist möglicherweise NULL.

Hinweise

Dieser Konstruktor sollte nur für Verzierungen verwendet werden, die Text im Textpuffer der Ansicht ersetzen.

Gilt für:

IntraTextAdornmentTag(UIElement, AdornmentRemovedCallback, Nullable<PositionAffinity>)

Initialisiert eine neue Instanz von 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))

Parameter

adornment
UIElement

Die An der Position des Tags anzuzeigende Verzierung. Darf nicht NULL sein.

removalCallback
AdornmentRemovedCallback

Wird aufgerufen, wenn das Zusatzelement aus der Ansicht entfernt wird. Ist möglicherweise NULL.

affinity
Nullable<PositionAffinity>

Die Affinität des Zusatzelements. Sollte NULL iff sein, hat die Adornment eine Länge von null am Textpuffer der Ansicht.

Hinweise

Die Breite (und Höhe, sofern nicht im Tag angegeben) des zugeordneten Leerraums wird bestimmt, indem die Verzierung mit Measure(Size) und DesiredSize vor adornment der Platzierung in der visuellen Struktur gemessen wird. Wenn adornment die Größe vor dem Hinzufügen zur visuellen Struktur nicht bestimmt werden kann, müssen Sie die Breite von adornment explizit festlegen, bevor Sie ein Tag zurückgeben, das sie enthält.

Gilt für:

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

Initialisiert eine neue Instanz von 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))

Parameter

adornment
UIElement

Die An der Position des Tags anzuzeigende Verzierung. Darf nicht NULL sein.

removalCallback
AdornmentRemovedCallback

Wird aufgerufen, wenn das Zusatzelement aus der Ansicht entfernt wird. Ist möglicherweise NULL.

topSpace
Nullable<Double>

Der Platz, der zwischen dem oberen Rand des Texts in der ITextViewLine und dem oberen Rand der ITextViewLine benötigt wird.

baseline
Nullable<Double>

Die Baseline des Zusatzelements mit Platzausgleich.

textHeight
Nullable<Double>

Die Höhe des Textteils des Zusatzelements mit Platzausgleich.

bottomSpace
Nullable<Double>

Der Platz, der zwischen dem unteren Rand des Texts in der ITextViewLine und dem unteren Rand der ITextViewLine benötigt wird.

affinity
Nullable<PositionAffinity>

Die Affinität des Zusatzelements. Sollte NULL iff sein, hat die Adornment-Zeichenfolge im Textpuffer der Ansicht eine Spanne der Länge ungleich 0 (null).

Hinweise

Die Breite (und Höhe, sofern nicht im Tag angegeben) des zugeordneten Leerraums wird bestimmt, indem die Verzierung mit Measure(Size) und DesiredSize vor adornment der Platzierung in der visuellen Struktur gemessen wird. Wenn adornment die Größe vor dem Hinzufügen zur visuellen Struktur nicht bestimmt werden kann, müssen Sie die Breite von adornment explizit festlegen, bevor Sie ein Tag zurückgeben, das sie enthält.

Gilt für:

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

Initialisiert eine neue Instanz von 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)

Parameter

adornment
UIElement

Die An der Position des Tags anzuzeigende Verzierung. Darf nicht NULL sein.

removalCallback
AdornmentRemovedCallback

Wird aufgerufen, wenn das Zusatzelement aus der Ansicht entfernt wird. Ist möglicherweise NULL.

topSpace
Nullable<Double>

Der Platz, der zwischen dem oberen Rand des Texts in der ITextViewLine und dem oberen Rand der ITextViewLine benötigt wird.

baseline
Nullable<Double>

Die Baseline des Zusatzelements mit Platzausgleich.

textHeight
Nullable<Double>

Die Höhe des Textteils des Zusatzelements mit Platzausgleich.

bottomSpace
Nullable<Double>

Der Platz, der zwischen dem unteren Rand des Texts in der ITextViewLine und dem unteren Rand der ITextViewLine benötigt wird.

affinity
Nullable<PositionAffinity>

Die Affinität des Zusatzelements. Sollte NULL iff sein, hat die Adornment-Zeichenfolge im Textpuffer der Ansicht eine Spanne der Länge ungleich 0 (null).

ranking
Double

Tie Breaker, der verwendet wird, um zufällige Verzierungen zu sortieren.

Hinweise

Die Breite (und Höhe, sofern nicht im Tag angegeben) des zugeordneten Leerraums wird bestimmt, indem die Verzierung mit Measure(Size) und DesiredSize vor adornment der Platzierung in der visuellen Struktur gemessen wird. Wenn adornment die Größe vor dem Hinzufügen zur visuellen Struktur nicht bestimmt werden kann, müssen Sie die Breite von adornment explizit festlegen, bevor Sie ein Tag zurückgeben, das sie enthält.

Gilt für: