Share via


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
古い.

Microsoft.Maui.Controls プラットフォームによる内部使用。

(継承元 Element)
Parent

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

(継承元 Element)
RealParent

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

(継承元 Element)
Style

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

StyleId

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

(継承元 Element)
Text

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

TextColor

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

TextDecorations

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

TextTransform

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

メソッド

AddLogicalChild(Element)

論理子に を 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 インデックス位置の論理子に を挿入します。

(継承元 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)
SetValueCore(BindableProperty, Object, SetValueFlags)

Microsoft.Maui.Controls プラットフォームによる内部使用。

(継承元 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)

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

(継承元 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)

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

ToFont(IFontElement, Nullable<Double>)

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

FindByName<T>(Element, String)

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

ToHandler(IElement, IMauiContext)

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

ToPlatform(IElement, IMauiContext)

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

GetVisualElementWindow(IVisualTreeElement)

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

GetVisualTreeDescendants(IVisualTreeElement)

指定された Visual Tree 要素の子の一覧として、子孫の階層全体を取得します。

GetVisualTreeElements(IVisualTreeElement, Point)

指定した Point に基づく Visual Tree 要素の子の一覧を取得します。

GetVisualTreeElements(IVisualTreeElement, Rect)

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

GetVisualTreeElements(IVisualTreeElement, Double, Double)

指定された x、y ポイントに基づく Visual Tree Elements の子の一覧を取得します。

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

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

適用対象