TableCell.Text プロパティとは? わかりやすく解説

TableCell.Text プロパティ

セルテキストの内容取得または設定します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

<LocalizableAttribute(True)> _
Public Overridable Property
 Text As String
Dim instance As TableCell
Dim value As String

value = instance.Text

instance.Text = value
[LocalizableAttribute(true)] 
public virtual string Text { get;
 set; }
[LocalizableAttribute(true)] 
public:
virtual property String^ Text {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Text ()

/** @property */
public void set_Text (String value)

プロパティ
セルテキストの内容既定値は String.Empty です。

解説解説

このプロパティの値は、設定時にデザイナ ツール使用してリソース ファイル自動的に保存できます詳細については、LocalizableAttribute、ASP.NETグローバリゼーションおよびローカリゼーション の各トピック参照してください

使用例使用例

TableCell コントロール新しインスタンスプログラムによって作成する方法コード例次に示します。特に、TableCell コントロール内容設定するための Text プロパティ使い方注意してください

このコード例は、TableCell クラストピック取り上げているコード例一部分です。

' Create more rows for the table.
Dim i As Integer
For i = 2 To 9
    Dim tempRow As New TableRow()
    Dim j As Integer
    For j = 0 To 2
        Dim tempCell As New
 TableCell()
        tempCell.Text = "(" & i & ","
 & j & ")"
        tempRow.Cells.Add(tempCell)
    Next j
    Table1.Rows.Add(tempRow)
Next i
// Create more rows for the table.
for (int i = 2; i < 10; i++)
{
    TableRow tempRow = new TableRow();
    for (int j = 0; j < 3; j++)
    {
        TableCell tempCell = new TableCell();
        tempCell.Text = "(" + i + "," + j + ")";
        tempRow.Cells.Add(tempCell);
    }
    Table1.Rows.Add(tempRow);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からTableCell.Text プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTableCell.Text プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTableCell.Text プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「TableCell.Text プロパティ」の関連用語











TableCell.Text プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TableCell.Text プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS