すべての RTF (Rich Text Format) コードを含めて、 RichTextBox コントロールのテキストを取得または設定します。
Public Property Rtf As String
[C#]
public string Rtf {get; set;}
[C++]
public: __property String* get_Rtf();public: __property void set_Rtf(String*);
[JScript]
public function get Rtf() : String;public function set Rtf(String);
プロパティ値
コントロール内の RTF 形式のテキスト。
解説
このプロパティを使用すると、RTF 形式のテキストをコントロールに配置して表示したり、コントロール内のテキストに定義されている特定の RTF 書式を維持したまま、そのテキストを抽出できます。通常、このプロパティは、Microsoft Word や Windows ワードパッドなど、RTF 形式を処理できる別のアプリケーションから RTF 形式のテキストをコントロールに割り当てるときに使用します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
RichTextBox クラス | RichTextBox メンバ | System.Windows.Forms 名前空間 | Text