次の方法で共有


Span クラス

定義

FormattedString のセクションを表します。

public ref class Span : Microsoft::Maui::Controls::GestureElement, Microsoft::Maui::Controls::IDecorableTextElement, Microsoft::Maui::Controls::Internals::IFontElement
[Microsoft.Maui.Controls.ContentProperty("Text")]
public class Span : Microsoft.Maui.Controls.GestureElement, Microsoft.Maui.Controls.IDecorableTextElement, Microsoft.Maui.Controls.Internals.IFontElement
[<Microsoft.Maui.Controls.ContentProperty("Text")>]
type Span = class
    inherit GestureElement
    interface IFontElement
    interface IDecorableTextElement
Public Class Span
Inherits GestureElement
Implements IDecorableTextElement, IFontElement
継承
属性
実装

注釈

Span プロパティへのバインドは、既定では OneTime です。

コンストラクター

Span()

Span クラスの新しいインスタンスを初期化します。

フィールド

BackgroundColorProperty

のバインド可能なプロパティ BackgroundColorです。

CharacterSpacingProperty

のバインド可能なプロパティ CharacterSpacingです。

FontAttributesProperty

のバインド可能なプロパティ FontAttributesです。

FontAutoScalingEnabledProperty

のバインド可能なプロパティ FontAutoScalingEnabledです。

FontFamilyProperty

のバインド可能なプロパティ FontFamilyです。

FontSizeProperty

のバインド可能なプロパティ FontSizeです。

LineHeightProperty

のバインド可能なプロパティ LineHeightです。

StyleProperty

のバインド可能なプロパティ Styleです。

TextColorProperty

のバインド可能なプロパティ TextColorです。

TextDecorationsProperty

のバインド可能なプロパティ TextDecorationsです。

TextProperty

のバインド可能なプロパティ Textです。

TextTransformProperty

のバインド可能なプロパティ TextTransformです。

プロパティ

AutomationId

自動化フレームワークがこの要素を見つけ、対話することを可能にする値を取得または設定します。

(継承元 Element)
BackgroundColor

スパンの背景の色を取得または設定します。

BindingContext

この BindableObjectプロパティに属するバインドされたプロパティの対象となるプロパティを含むオブジェクトを取得または設定します。 これはバインド可能なプロパティです。

(継承元 BindableObject)
CharacterSpacing

FormattedString のセクションを表します。

ClassId

意味的に同類の要素の集合を識別するために使用される値を取得または設定します。

(継承元 Element)
Dispatcher

このバインド可能なオブジェクトが作成されたときに使用可能だったディスパッチャーを取得します。それ以外の場合は、使用可能な最も近いディスパッチャー (おそらくウィンドウ/アプリ) を検索しようとします。

(継承元 BindableObject)
EffectControlProvider

.NET MAUI による内部使用の場合。

(継承元 Element)
Effects

実行時に要素に適用されるスタイルとプロパティを取得または設定します。

(継承元 Element)
FontAttributes

スパンのフォントが太字か、斜体か、そのいずれでもないかを示す値を取得します。

FontAutoScalingEnabled

FormattedString のセクションを表します。

FontFamily

スパン内のテキストのフォントが属するフォント ファミリを取得します。

FontSize

スパン内のテキストのフォントのサイズを取得します。

GestureRecognizers

要素に属している認識機能の一覧を取得します。

(継承元 GestureElement)
Handler

この要素に関連付けられているハンドラーを取得または設定します。

(継承元 Element)
Id

アプリケーションの実行全体で要素を一意に識別するために使用できる値を取得します。

(継承元 Element)
LineHeight

テキストを表示する場合、既定行の高さに適用する乗数を取得または設定します。

LogicalChildren
古い.

FormattedString のセクションを表します。

(継承元 Element)
Parent

この要素の親 Element を取得または設定します。

(継承元 Element)
RealParent

.NET MAUI による内部使用の場合。

(継承元 Element)
Style

スパンに適用するスタイルを取得または設定します。

StyleId

要素を一意に識別するユーザー定義の値を取得または設定します。

(継承元 Element)
Text

スパンのテキストを取得または設定します。

TextColor

テキストの色を取得または設定します。

TextDecorations

このスパンに適用される TextDecorations を取得または設定します。

TextTransform

FormattedString のセクションを表します。

メソッド

AddLogicalChild(Element)

論理子に an Element を追加します。

(継承元 Element)
ApplyBindings()

現在のすべてのバインディングを適用します BindingContext

(継承元 BindableObject)
ClearLogicalChildren()

すべての子 Elementを削除します。

(継承元 Element)
ClearValue(BindableProperty)

バインド可能なプロパティに対して以前に設定されたすべての値をクリアします。

(継承元 BindableObject)
ClearValue(BindablePropertyKey)

バインド可能なプロパティに対して以前に設定された値をクリアします。その値は、そのキーで識別されます。

(継承元 BindableObject)
CoerceValue(BindableProperty)

指定したバインド可能なプロパティの値を強制します。 これを行うには、指定されたバインド可能なプロパティを BindableProperty.CoerceValueDelegate 呼び出します。

(継承元 BindableObject)
CoerceValue(BindablePropertyKey)

指定したバインド可能なプロパティの値を強制します。 これを行うには、指定されたバインド可能なプロパティを BindableProperty.CoerceValueDelegate 呼び出します。

(継承元 BindableObject)
EffectIsAttached(String)

.NET MAUI による内部使用の場合。

(継承元 Element)
FindByName(String)

指定した名前を持つ要素を返します。

(継承元 Element)
GetValue(BindableProperty)

指定されたバインド可能なプロパティに含まれる値を返します。

(継承元 BindableObject)
InsertLogicalChild(Int32, Element)

指定した Element インデックス位置に論理子に an を挿入します。

(継承元 Element)
IsSet(BindableProperty)

バインド可能なプロパティが存在し、値が設定されているかどうかを判断します。

(継承元 BindableObject)
OnBindingContextChanged()

FormattedString のセクションを表します。

OnChildAdded(Element)

ChildAdded イベントを発生させます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

(継承元 Element)
OnChildRemoved(Element, Int32)

ChildRemoved イベントを発生させます。 このイベントのクラス処理を追加するには、このメソッドを実装します

(継承元 Element)
OnHandlerChanged()

派生クラスでオーバーライドされた場合は、イベントを発生させる HandlerChanged 必要があります。

(継承元 Element)
OnHandlerChanging(HandlerChangingEventArgs)

派生クラスでオーバーライドされた場合は、イベントを発生させる HandlerChanging 必要があります。

(継承元 Element)
OnParentChanged()

派生クラスでオーバーライドされた場合は、イベントを発生させる ParentChanged 必要があります。

(継承元 Element)
OnParentChanging(ParentChangingEventArgs)

派生クラスでオーバーライドされた場合は、イベントを発生させる ParentChanging 必要があります。

(継承元 Element)
OnParentSet()

(内部) ParentSet イベントを発生させます。 要素が親に追加されたときの動作を追加する目的でこのメソッドを実装します。

(継承元 Element)
OnPropertyChanged(String)

バインドされたプロパティが変更されたときに呼び出されるメソッド。

(継承元 Element)
OnPropertyChanging(String)

PropertyChanging イベントを発生させます。

(継承元 BindableObject)
RemoveBinding(BindableProperty)

バインド可能なプロパティから、以前に設定したバインドを削除します。

(継承元 BindableObject)
RemoveDynamicResource(BindableProperty)

以前に設定した動的リソースを削除します。

(継承元 Element)
RemoveLogicalChild(Element)

論理子から特定の項目 Element の最初の出現箇所を削除します。

(継承元 Element)
SetBinding(BindableProperty, BindingBase)

バインド可能なプロパティにバインドを割り当てます。

(継承元 BindableObject)
SetDynamicResource(BindableProperty, String)

指定されたキーを BindableProperty 使用して DynamicResource を介して更新されるこの要素のプロパティを設定します。

(継承元 Element)
SetValue(BindableProperty, Object)

指定したバインド可能なプロパティの値を設定します。

(継承元 BindableObject)
SetValue(BindablePropertyKey, Object)

指定したバインド可能なプロパティの値を設定します。

(継承元 BindableObject)
SetValueFromRenderer(BindableProperty, Object)

.NET MAUI による内部使用の場合。

(継承元 Element)
SetValueFromRenderer(BindablePropertyKey, Object)

.NET MAUI による内部使用の場合。

(継承元 Element)
UnapplyBindings()

現在のコンテキストから現在のすべてのバインドを削除します。

(継承元 BindableObject)
UpdateFormsText(String, TextTransform)

FormattedString のセクションを表します。

イベント

BindingContextChanged

BindingContext プロパティの値が変化したときに発生します。

(継承元 BindableObject)
ChildAdded

子要素が要素に追加されるたびに発生します。

(継承元 Element)
ChildRemoved

子要素が要素から削除されるたびに発生します。

(継承元 Element)
DescendantAdded

子要素が要素のサブツリーに追加されるたびに発生します。

(継承元 Element)
DescendantRemoved

子要素が要素サブツリーから削除されるたびに発生します。

(継承元 Element)
HandlerChanged

要素のハンドラーが変更されるたびに発生します。

(継承元 Element)
HandlerChanging

要素のハンドラーが変更を開始するたびに発生します。

(継承元 Element)
ParentChanged

要素の親が変更されるたびに発生します。

(継承元 Element)
ParentChanging

要素の変更が開始されるたびに発生します。

(継承元 Element)
PropertyChanged

プロパティ値が変更されたときに発生します。

(継承元 BindableObject)
PropertyChanging

プロパティ値が変更されるときに発生します。

(継承元 BindableObject)

明示的なインターフェイスの実装

IContextFlyoutElement.ContextFlyout

ビューの ContextFlyout 値を取得します。 メニュー ポップアップ、メニュー ポップアップ サブ項目、およびメニュー ポップアップ区切り記号をコンテキスト ポップアップに追加できます。

(継承元 Element)
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

FormattedString のセクションを表します。

(継承元 BindableObject)
IEffectControlProvider.RegisterEffect(Effect)

指定した effect 要素をこの要素に登録します。

(継承元 Element)
IElement.Parent

要素の親を取得します。

(継承元 Element)
IElementController.Descendants()

.NET MAUI による内部使用の場合。

(継承元 Element)
IElementController.LogicalChildren

.NET MAUI による内部使用の場合。

(継承元 Element)
IElementController.SetValueFromRenderer(BindableProperty, Object)

.NET MAUI による内部使用の場合。

(継承元 Element)
IFontElement.FontSizeDefaultValueCreator()

FormattedString のセクションを表します。

IFontElement.OnFontAttributesChanged(FontAttributes, FontAttributes)

FormattedString のセクションを表します。

IFontElement.OnFontAutoScalingEnabledChanged(Boolean, Boolean)

FormattedString のセクションを表します。

IFontElement.OnFontFamilyChanged(String, String)

FormattedString のセクションを表します。

IFontElement.OnFontSizeChanged(Double, Double)

FormattedString のセクションを表します。

INameScope.RegisterName(String, Object)

.NET MAUI による内部使用の場合。

(継承元 Element)
INameScope.UnregisterName(String)

.NET MAUI による内部使用の場合。

(継承元 Element)
ISpatialElement.Region

FormattedString のセクションを表します。

(継承元 GestureElement)
IToolTipElement.ToolTip

ユーザーがビューにポインターを置いたときに、ビューの目的の簡単な説明を表示する小さな四角形のポップアップ ウィンドウを表します。

(継承元 Element)
IVisualTreeElement.GetVisualChildren()

要素のビジュアルの子の読み取り専用リストを取得します。

(継承元 Element)
IVisualTreeElement.GetVisualParent()

要素のビジュアルの親を取得します。

(継承元 Element)

拡張メソッド

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

FormattedString のセクションを表します。

SetAppTheme<T>(BindableObject, BindableProperty, T, T)

FormattedString のセクションを表します。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

FormattedString のセクションを表します。

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

プロパティにバインドを作成し、適用します。

SetBinding<TSource,TProperty>(BindableObject, BindableProperty, Func<TSource,TProperty>, BindingMode, IValueConverter, Object, String, Object, Object, Object)

ソース オブジェクトのプロパティとターゲット オブジェクトのプロパティの間にバインディングを作成します。

ToFont(IFontElement, Nullable<Double>)

FormattedString のセクションを表します。

FindByName<T>(Element, String)

FormattedString のセクションを表します。

ToHandler(IElement, IMauiContext)

FormattedString のセクションを表します。

ToPlatform(IElement, IMauiContext)

FormattedString のセクションを表します。

GetVisualElementWindow(IVisualTreeElement)

要素が 1 つ内に含まれている場合は、Visual Tree 要素を含むウィンドウを取得します。

GetVisualTreeDescendants(IVisualTreeElement)

特定の Visual Tree 要素の子の一覧として子孫の階層全体を取得します。

GetVisualTreeElements(IVisualTreeElement, Point)

指定されたポイントに基づいて、ビジュアル ツリー要素の子の一覧を取得します。

GetVisualTreeElements(IVisualTreeElement, Rect)

四角形に基づくビジュアル ツリー要素の子の一覧を取得します。

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)

ピクセルではなくプラットフォーム単位で指定された座標によって定義された四角形に基づいて、Visual Tree Elements の子の一覧を取得します。

GetVisualTreeElements(IVisualTreeElement, Double, Double)

指定された x、y ポイントに基づくビジュアル ツリー要素の子の一覧を取得します。

適用対象