WizardForm.Pages プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ウィザード内の 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 プロパティを作成できます。