次の方法で共有


CodeComment.Text プロパティ

コメントのテキストを取得または設定します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)

構文

'宣言
Public Property Text As String
'使用
Dim instance As CodeComment
Dim value As String

value = instance.Text

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

/** @property */
public void set_Text (String value)
public function get Text () : String

public function set Text (value : String)

プロパティ値

コメント テキストを含む文字列。

解説

このプロパティのテキストには、改行を使用しないでください。複数の行が必要な場合は、複数の CodeComment オブジェクトを定義する必要があります。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

CodeComment クラス
CodeComment メンバ
System.CodeDom 名前空間