Span クラス

定義

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

[Xamarin.Forms.ContentProperty("Text")]
public class Span : Xamarin.Forms.GestureElement, Xamarin.Forms.IDecorableTextElement, Xamarin.Forms.Internals.IFontElement
type Span = class
    inherit GestureElement
    interface IFontElement
    interface IDecorableTextElement
継承
属性
実装

注釈

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

コンストラクター

Span()

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

フィールド

BackgroundColorProperty

BackgroundColor プロパティのバッキング ストア。

CharacterSpacingProperty

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

FontAttributesProperty

FontAttributes プロパティのバッキング ストア。

FontFamilyProperty

FontFamily プロパティのバッキング ストア。

FontProperty

Font プロパティのバッキング ストア。

FontSizeProperty

FontSize プロパティのバッキング ストア。

ForegroundColorProperty
互換性のために残されています。

ForegroundColor プロパティのバッキング ストア。

LineHeightProperty

バインド可能なプロパティ LineHeight のバッキング ストア。

StyleProperty

Style プロパティのバッキング ストア。

TextColorProperty

TextColor プロパティのバッキング ストア。

TextDecorationsProperty

TextDecorations プロパティに関連付けられた BindableProperty

TextProperty

Text プロパティのバッキング ストア。

TextTransformProperty

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

プロパティ

AutomationId

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

(継承元 Element)
BackgroundColor

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

BindingContext

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

(継承元 BindableObject)
CharacterSpacing

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

ClassId

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

(継承元 Element)
Dispatcher

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

(継承元 BindableObject)
EffectControlProvider

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
Effects

この項目に適用される効果の一覧。

(継承元 Element)
Font
互換性のために残されています。

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

FontAttributes

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

FontFamily

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

FontSize

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

ForegroundColor

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

GestureRecognizers

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

(継承元 GestureElement)
Id

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

(継承元 Element)
LineHeight

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

LogicalChildren

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
Parent

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

(継承元 Element)
ParentView
互換性のために残されています。

この要素の最も近い祖先 (すなわち VisualElement) である要素を取得します。

(継承元 Element)
Platform
互換性のために残されています。

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

(継承元 Element)
RealParent

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
Style

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

StyleId

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

(継承元 Element)
Text

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

TextColor

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

TextDecorations

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

TextTransform

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

メソッド

ApplyBindings()

BindingContext にバインディングを適用します。

(継承元 BindableObject)
ClearValue(BindableProperty)

propertySetValue によって設定された値を消去します。

(継承元 BindableObject)
ClearValue(BindablePropertyKey)

propertyKey によって識別されるプロパティの SetValue によって設定される値を消去します。

(継承元 BindableObject)
CoerceValue(BindableProperty)

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

(継承元 BindableObject)
CoerceValue(BindablePropertyKey)

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

(継承元 BindableObject)
Descendants()

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
EffectIsAttached(String)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
FindByName(String)

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

(継承元 Element)
GetValue(BindableProperty)

BindableProperty に含まれる値を返します。

(継承元 BindableObject)
GetValues(BindableProperty, BindableProperty)
互換性のために残されています。

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
互換性のために残されています。

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 BindableObject)
IsSet(BindableProperty)

ターゲット プロパティが存在し、設定されている場合、true を返します。

(継承元 BindableObject)
OnBindingContextChanged()

このメソッドをオーバーライドし、BindingContext が変更されたときにアクションを実行します。

OnChildAdded(Element)

ChildAdded イベントを生成する必要があるたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

(継承元 Element)
OnChildRemoved(Element)
互換性のために残されています。

ChildRemoved イベントを生成する必要があるたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

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

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

(継承元 Element)
OnParentSet()

要素の親が設定されるたびに呼び出されます。 要素が親に追加されたときの動作を追加する目的でこのメソッドを実装します。

(継承元 Element)
OnPropertyChanged(String)

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

(継承元 Element)
OnPropertyChanging(String)

子クラスからこのメソッドを呼び出し、プロパティで変更が行われることを通知します。

(継承元 BindableObject)
RemoveBinding(BindableProperty)

以前に設定されたバインディングを削除します。

(継承元 BindableObject)
RemoveDynamicResource(BindableProperty)

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

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

プロパティにバインディングを割り当てます。

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

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

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

指定したプロパティの値を設定します。

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

propertyKey の値を設定します。

(継承元 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

Xamarin.Forms プラットフォームによる内部使用向け。

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

Xamarin.Forms プラットフォームによる内部使用向け。

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

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
UnapplyBindings()

以前に設定されたバインディングをすべて解除します。

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

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

イベント

BindingContextChanged

BindingContext プロパティが変更されるたびに発生します。

(継承元 BindableObject)
ChildAdded

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

(継承元 Element)
ChildRemoved

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

(継承元 Element)
DescendantAdded

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

(継承元 Element)
DescendantRemoved

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

(継承元 Element)
PlatformSet
互換性のために残されています。

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

(継承元 Element)
PropertyChanged

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

(継承元 BindableObject)
PropertyChanging

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

(継承元 BindableObject)

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

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

Xamarin.Forms プラットフォームによる内部使用向け。

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

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
IFontElement.FontSizeDefaultValueCreator()

Xamarin.Forms プラットフォームによる内部使用向け。

IFontElement.OnFontAttributesChanged(FontAttributes, FontAttributes)

Xamarin.Forms プラットフォームによる内部使用向け。

IFontElement.OnFontChanged(Font, Font)

Xamarin.Forms プラットフォームによる内部使用向け。

IFontElement.OnFontFamilyChanged(String, String)

Xamarin.Forms プラットフォームによる内部使用向け。

IFontElement.OnFontSizeChanged(Double, Double)

Xamarin.Forms プラットフォームによる内部使用向け。

INameScope.RegisterName(String, Object)

内部使用のみ。

(継承元 Element)
ISpatialElement.Region

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 GestureElement)

拡張メソッド

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

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

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

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

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

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

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
互換性のために残されています。

式からバインドを作成し適用します。

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

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

FindByName<T>(Element, String)

element を含むスコープに name という名前を持つ型 T のインスタンスを返します。

適用対象