Text クラス
単一の書式で文字列を表示するウィジェットです。
名前空間: FloatSoda.Widgets
アセンブリ: FloatSoda.dll
public sealed record Text : StatelessWidget, IEquatable<Widget>, IEquatable<StatelessWidget>, IEquatable<Text>object ← Widget ← StatelessWidget ← Text
実装するインターフェイス
Section titled “実装するインターフェイス”IEquatable<Widget>, IEquatable<StatelessWidget>, IEquatable<Text>
継承したメンバー
Section titled “継承したメンバー”StatelessWidget.CreateElement(), StatelessWidget.Build(IBuildContext), Widget.Key, Widget.CanUpdate(Widget, Widget), Widget.CreateElement(), Widget.GetHashCode(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”Text(string)
Section titled “Text(string)”表示する文字列を指定してウィジェットを初期化します。
public Text(string data)パラメーター
Section titled “パラメーター”data string
表示する文字列。空文字列も指定できます。
dataがnullです。
表示する文字列を取得します。
public string Data { get; init; }プロパティの値
Section titled “プロパティの値”値がnullです。
文字列に適用する書式を取得します。
public TextStyle? Style { get; init; }プロパティの値
Section titled “プロパティの値”明示しなかったプロパティ(およびnullの場合の全プロパティ)は、 最も近い祖先のDefaultTextStyleから継承します。 継承元にも無いプロパティにはフレームワークの既定値が適用されます。 Inheritがfalseの場合は継承せず、この書式のみを使用します。
Build(IBuildContext)
Section titled “Build(IBuildContext)”文字列を段落として描画する子ウィジェットを構築します。
public override Widget Build(IBuildContext context)パラメーター
Section titled “パラメーター”context IBuildContext
このウィジェットが配置されている構築コンテキスト。