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;
the selection style. If the given component is not selected this will throw an exception.
ISelectionUIService Interface | ISelectionUIService Members | System.WinForms.Design Namespace