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.SetSelectionStyle

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]
Sub SetSelectionStyle( _
   ByVal component As Object, _
   ByVal style As SelectionStyles _
)
[C#]
void SetSelectionStyle(
   object component,
   SelectionStyles style
);
[C++]
void SetSelectionStyle(
   Object* component,
   SelectionStyles style
) = 0;
[JScript]
function SetSelectionStyle(
   component : Object,
   style : SelectionStyles
);

Parameters

component
The component to set the selection style for.
style
The style to set it to.

See Also

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