SelectionRules Enum

Definition

Defines identifiers that are used to indicate selection rules for a component.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum SelectionRules
Inheritance
SelectionRules
Attributes

Fields

Name Value Description
Locked -2147483648

Indicates the component is locked to its container. Overrides the Moveable, AllSizeable, BottomSizeable, LeftSizeable, RightSizeable, and TopSizeable bit flags of this enumeration.

None 0

Indicates no special selection attributes.

TopSizeable 1

Indicates the component supports resize from the top.

BottomSizeable 2

Indicates the component supports resize from the bottom.

LeftSizeable 4

Indicates the component supports resize from the left.

RightSizeable 8

Indicates the component supports resize from the right.

AllSizeable 15

Indicates the component supports sizing in all directions.

Moveable 268435456

Indicates the component supports a location property that allows it to be moved on the screen.

Visible 1073741824

Indicates the 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 designer instance.

Remarks

These identifiers indicate whether a component has some form of visible user interface and whether the user can take actions to move or alter the size of the component.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9