System.Windows.Forms.Design.SelectionRules Enumeration

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

Syntax

[System.Flags]
public enum SelectionRules

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.

Members

Member NameDescription
AllSizeable

Indicates the component supports sizing in all directions.

BottomSizeable

Indicates the component supports resize from the bottom.

LeftSizeable

Indicates the component supports resize from the left.

Locked

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

Moveable

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

None

Indicates no special selection attributes.

RightSizeable

Indicates the component supports resize from the right.

TopSizeable

Indicates the component supports resize from the top.

Visible

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 System.ComponentModel.IComponent and that it is associated with a corresponding designer instance.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0