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!

SelectionStyles Enumeration

Specifies identifiers to use to indicate the style of the selection frame of a component.

[Visual Basic]
Public Enum SelectionStyles
[C#]
public enum SelectionStyles
[C++]
public enum SelectionStyles

[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.

Remarks

When a component becomes selected, the selection border for the component defaults to Selected. The user can know what mode a component is in through the use of a different selection border. While a component can configure different selection border styles, changing a border style does not affect the behavior of the component in the designer. Developers must make use of the IDesigner interface to modify the component's behavior when running in a design environment.

Selection involves an action a user or interface takes to select an object. Once the object is selected, the user can specify an action for the object. System.ComponentModel.Design.SelectionStyleEnum allows you to specify 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, 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 SelectionStyles enum values.

Members

Member Name Description
Active An alternative selection border, indicating that a component is in active editing mode and that clicking and dragging on the component affects the component itself, not its position in the designer.
None The component is not currently selected.
Selected A component is selected and may be dragged around the designer freely (see SelectionRules). This is the default.

Requirements

Namespace: System.ComponentModel.Design

Assembly: System.dll

See Also

System.ComponentModel.Design Namespace