指定した選択の種類と一致するコンポーネントの指定したコレクション内からコンポーネントを選択します。
Sub SetSelectedComponents( _
ByVal components As ICollection, _ ByVal selectionType As SelectionTypes _)
[C#]
void SetSelectedComponents(
ICollectioncomponents,SelectionTypesselectionType);
[C++]
void SetSelectedComponents(
ICollection* components,SelectionTypesselectionType);
[JScript]
function SetSelectedComponents(
components : ICollection,selectionType : SelectionTypes);
パラメータ
- components
選択対象のコンポーネントのコレクション。 - selectionType
SelectionTypes 列挙値。既定値は Normal です。
解説
配列が null 参照 (Visual Basic では Nothing) であるか、コンポーネントを含んでいない場合、 SetSelectedComponents はデザイナ内の最上位レベルのコンポーネントを選択します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ISelectionService インターフェイス | ISelectionService メンバ | System.ComponentModel.Design 名前空間 | ISelectionService.SetSelectedComponents オーバーロードの一覧 | SelectionTypes