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!

SelectionRules Enumeration

Specifies a set of selection rule identifiers that can be used to indicate attributes for a selected component.

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

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

Remarks

The SelectionRules enum specifies identifiers which can be used to determine whether the selected component has some form of visible user interface and whether the user can take actions to move or alter the size of an object.

Members

Member Name Description
AllSizeable Indicates the given component supports sizing in all directions, and the selection service is not currently locked.
BottomSizeable Indicates the given component supports resize from the bottom. This bit will be ignored unless the Sizeable bit is also set.
LeftSizeable Indicates the given component supports resize from the left. This bit will be ignored unless the Sizeable bit is also set.
Locked Indicates the given component is locked to its container. Overrides the moveable and sizeable properties of this enum.
Moveable Indicates the given component supports a location property that allows it to be moved on the screen, and that the selection service is not currently locked.
None Indicates no special selection attributes.
RightSizeable Indicates the given component supports resize from the right. This bit will be ignored unless the Sizeable bit is also set.
TopSizeable Indicates the given component supports resize from the top. This bit will be ignored unless the Sizeable bit is also set.
Visible Indicates the given component has some form of visible user interface and the selection service is drawing a selection border around this user interface. If a selected component has this rule set, you can assume that the component implements IComponent and that it is associated with a corresponding design instance.

Requirements

Namespace: System.ComponentModel.Design

Assembly: System.dll

See Also

System.ComponentModel.Design Namespace | SelectionTypes