xtd 0.2.0
Loading...
Searching...
No Matches

◆ anchor_styles

enum class xtd::forms::anchor_styles
strong

Specifies how a control anchors to the edges of its container.

Namespace
xtd::forms
Library
xtd.forms
Remarks
This enumeration has a flags attribute that allows a bitwise combination of its member values.
When a control is anchored to an edge of its container, the distance between the control and the specified edge remains constant when the container resizes. For example, if a control is anchored to the right edge of its container, the distance between the right edge of the control and the right edge of the container remains constant when the container resizes. A control can be anchored to any combination of control edges. If the control is anchored to opposite edges of its container (for example, to the top and bottom), it resizes when the container resizes. If a control has its anchor property set to none, the control moves half of the distance that the container of the control is resized. For example, if a button has its anchor property set to none and the form that the control is located on is resized by 20 pixels in either direction, the button will be moved 10 pixels in both directions.
Enumerator
none 

no styles.

top 

Bind control edges to the top of its container.

bottom 

Bind control edges to the bottom of its container.

left 

Bind control edges to the left of its container.

right 

Bind control edges to the right of its container.

all 

All flags except none.