IntraTextAdornmentTag コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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>
装飾のアフィニティ。 表示要素がビューのテキスト バッファーに長さ 0 のスパンがある場合は null にする必要があります。
注釈
割り当てられた空白の幅 (タグで指定されていない場合は高さ) は、 をDesiredSize使用してMeasure(Size)装飾を測定することによって決定されます。前adornment
はビジュアル ツリーに配置されます。 ビジュアル ツリーに追加する前にサイズを決定できない場合 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 も指定できます。
内のテキストの先頭と の上部の間に ITextViewLine 必要な領域の ITextViewLine量。
内のテキストの下部と の下部の間に ITextViewLine 必要な領域の ITextViewLine量。
- affinity
- Nullable<PositionAffinity>
装飾のアフィニティ。 表示要素の長さが 0 以外のスパンがビューのテキスト バッファーにある場合は、null にする必要があります。
注釈
割り当てられた空白の幅 (タグで指定されていない場合は高さ) は、 をDesiredSize使用してMeasure(Size)装飾を測定することによって決定されます。前adornment
はビジュアル ツリーに配置されます。 ビジュアル ツリーに追加する前にサイズを決定できない場合 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 も指定できます。
内のテキストの先頭と の上部の間に ITextViewLine 必要な領域の ITextViewLine量。
内のテキストの下部と の下部の間に ITextViewLine 必要な領域の ITextViewLine量。
- affinity
- Nullable<PositionAffinity>
装飾のアフィニティ。 表示要素の長さが 0 以外のスパンがビューのテキスト バッファーにある場合は、null にする必要があります。
- ranking
- Double
一致する装飾を注文するために使用されるタイ ブレーカー。
注釈
割り当てられた空白の幅 (タグで指定されていない場合は高さ) は、 をDesiredSize使用してMeasure(Size)装飾を測定することによって決定されます。前adornment
はビジュアル ツリーに配置されます。 ビジュアル ツリーに追加する前にサイズを決定できない場合 adornment
は、そのサイズを含むタグを返す前に、 の adornment
幅を明示的に設定する必要があります。