次の方法で共有


Window2.Caption プロパティ

定義

オブジェクトによってWindowObject表されるウィンドウのキャプション テキストを取得または設定します。

public:
 property System::String ^ Caption { System::String ^ get(); void set(System::String ^ value); };
public string Caption { get; set; }
member this.Caption : string with get, set
Public Property Caption As String

プロパティ値

次の例では、Caption プロパティを使用して、アクティブ ウィンドウのキャプション テキストを設定します。

string caption = "mycaption";
thisApplication.ActiveWindow.<span class="label">Caption</span> = caption;

注釈

このプロパティによって返されるか設定されるキャプションテキストは、ウィンドウのタイトル バーの "- InfoPath" の前のテキストに対応します

重要: このメンバーにアクセスできるのは、現在開いているフォームと同じドメインで実行されているフォーム、またはクロスドメインアクセス許可が付与されているフォームのみです。

適用対象