次の方法で共有


WizardForm.Pages プロパティ

定義

ウィザード内の IList ページのコレクションを含むインターフェイスを取得します。

protected public:
 property System::Collections::IList ^ Pages { System::Collections::IList ^ get(); };
protected internal System.Collections.IList Pages { get; }
member this.Pages : System.Collections.IList
Protected Friend ReadOnly Property Pages As IList

プロパティ値

IListウィザード フォーム内のページの一覧を含むインターフェイス。

次の例では、 プロパティを Pages 示し、ウィザード ページの数を表示します。 このコード例は、WizardForm クラスのために提供されている大規模な例の一部です。

protected new IList Pages
{
    get
    {
        // Get a wizard page collection.
        WizardPage[] wizardPages = GetWizardPages();
        ShowMessage("There are " + wizardPages.Length + " wizard pages.");
        return wizardPages;
    }
}
protected new IList Pages
{
    get
    {
        // Get a wizard page collection.
        WizardPage[] wizardPages = GetWizardPages();
        ShowMessage("There are " + wizardPages.Length + " wizard pages.");
        return wizardPages;
    }
}

注釈

ウィザード ページのコレクションを取得すると、ウィザード ページを処理、検索、並べ替えることができます。

返されるコレクションは、 インターフェイスの機能を System.Collections.IList 提供し、コレクションのすべての要素を公開します。 プロパティが取得する Pages インターフェイスは、 インターフェイスを実装する任意の型に System.Collections.IList キャストできます。

このプロパティを使用すると、カスタム Pages プロパティを作成できます。

適用対象

こちらもご覧ください