次の方法で共有


方法 : TextBox コントロールのテキスト コンテンツを設定する

更新 : 2007 年 11 月

この例では、Text プロパティを使用して、TextBox コントロールの初期のテキスト コンテンツを設定する方法を示します。

使用例

<TextBox Name="tbSettingText">
  Initial text contents of the TextBox.
</TextBox>
tbSettingText.Text = "Initial text contents of the TextBox."
tbSettingText.Text = "Initial text contents of the TextBox.";

参照

概念

TextBox の概要

RichTextBox の概要