NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISelectionService.SetSelectedComponents (Object[], SelectionTypes)

Sets the currently selected set of components to those with the specified selection type within the specified array of components.

[Visual Basic]
Overloads Sub SetSelectedComponents( _
   ByVal components() As Object, _
   ByVal selectionType As SelectionTypes _
)
[C#]
void SetSelectedComponents(
   object[] components,
   SelectionTypes selectionType
);
[C++]
void SetSelectedComponents(
   Object* components[],
   SelectionTypes selectionType
) = 0;
[JScript]
function SetSelectedComponents(
   components : Object[],
   selectionType : SelectionTypes
);

Parameters

components
The array of components to select.
selectionType
A value from the SelectionType enum. The default is System.ComponentModel.Design.SelectionTypes.NORMAL.

Remarks

If the array is a null reference (in Visual Basic Nothing) or doesn't contain any components, SetSelectedComponents will select the top level component in the designer.

See Also

ISelectionService Interface | ISelectionService Members | System.ComponentModel.Design Namespace | ISelectionService.SetSelectedComponents Overload List | System.ComponentModel.Design.SelectionType