TextView.SetText メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
SetText(Char[], Int32, Int32) |
指定した char 配列の指定したスライスを表示するように TextView を設定します。 |
SetText(Int32, TextView+BufferType) |
文字列リソース識別子を使用して表示するテキストを設定します。 |
SetText(String, TextView+BufferType) |
文字列リソース識別子を使用して表示するテキストを設定します。 |
SetText(Int32) |
文字列リソース識別子を使用して表示するテキストを設定します。 |
SetText(ICharSequence, TextView+BufferType) |
文字列リソース識別子を使用して表示するテキストを設定します。 |
SetText(Char[], Int32, Int32)
指定した char 配列の指定したスライスを表示するように TextView を設定します。
[Android.Runtime.Register("setText", "([CII)V", "")]
public void SetText (char[] text, int start, int len);
[<Android.Runtime.Register("setText", "([CII)V", "")>]
member this.SetText : char[] * int * int -> unit
パラメーター
- text
- Char[]
表示する char 配列
- start
- Int32
char 配列の開始インデックス
- len
- Int32
後の char カウントの長さ start
- 属性
注釈
指定した char 配列の指定したスライスを表示するように TextView を設定します。 TextView にはテキストが変更されたことと、無効にしてレイアウトを変更する必要があることを知る方法がないため、setText() の呼び出しの直前を除き、配列の内容を変更しないことを約束する必要があります。
の Java ドキュメント android.widget.TextView.setText(char[], int, int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetText(Int32, TextView+BufferType)
文字列リソース識別子を使用して表示するテキストを設定します。
[Android.Runtime.Register("setText", "(ILandroid/widget/TextView$BufferType;)V", "")]
public void SetText (int resid, Android.Widget.TextView.BufferType? type);
[<Android.Runtime.Register("setText", "(ILandroid/widget/TextView$BufferType;)V", "")>]
member this.SetText : int * Android.Widget.TextView.BufferType -> unit
パラメーター
- resid
- Int32
表示する文字列リソースのリソース識別子
- type
- TextView.BufferType
- 属性
注釈
の Java ドキュメント android.widget.TextView.setText(int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetText(String, TextView+BufferType)
文字列リソース識別子を使用して表示するテキストを設定します。
public void SetText (string? text, Android.Widget.TextView.BufferType? type);
member this.SetText : string * Android.Widget.TextView.BufferType -> unit
パラメーター
- text
- String
- type
- TextView.BufferType
注釈
の Java ドキュメント android.widget.TextView.setText(int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetText(Int32)
文字列リソース識別子を使用して表示するテキストを設定します。
[Android.Runtime.Register("setText", "(I)V", "")]
public void SetText (int resid);
[<Android.Runtime.Register("setText", "(I)V", "")>]
member this.SetText : int -> unit
パラメーター
- resid
- Int32
表示する文字列リソースのリソース識別子
- 属性
注釈
文字列リソース識別子を使用して表示するテキストを設定します。
の Java ドキュメント android.widget.TextView.setText(int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetText(ICharSequence, TextView+BufferType)
文字列リソース識別子を使用して表示するテキストを設定します。
[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "GetSetText_Ljava_lang_CharSequence_Landroid_widget_TextView_BufferType_Handler")]
public virtual void SetText (Java.Lang.ICharSequence? text, Android.Widget.TextView.BufferType? type);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "GetSetText_Ljava_lang_CharSequence_Landroid_widget_TextView_BufferType_Handler")>]
abstract member SetText : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unit
override this.SetText : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unit
パラメーター
- text
- ICharSequence
- type
- TextView.BufferType
- 属性
注釈
の Java ドキュメント android.widget.TextView.setText(int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。