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!

ISelectionUIService.GetSelectionStyle

Allows you to configure the style of the selection frame that a component uses. This is useful if your component supports different modes of operation (such as an in-place editing mode and a static design mode). Where possible, you should leave the selection style as is and use the design-time hit testing feature of the IDesigner interface to provide features at design time. The value of style must be one of the SelectionStyle enum values. The selection style is only valid for the duration that the component is selected.

[Visual Basic]
Function GetSelectionStyle( _
   ByVal component As Object _
) As SelectionStyles
[C#]
SelectionStyles GetSelectionStyle(
   object component
);
[C++]
SelectionStyles GetSelectionStyle(
   Object* component
) = 0;
[JScript]
function GetSelectionStyle(
   component : Object
) : SelectionStyles;

Parameters

component
The component to set the selection style for.

Return Value

the selection style. If the given component is not selected this will throw an exception.

See Also

ISelectionUIService Interface | ISelectionUIService Members | System.WinForms.Design Namespace