Daikon Forge GUI  v1.0.16
Daikon Forge user interface library for Unity
 All Classes Functions Variables Enumerations Enumerator Properties Events Pages
dfAnchorStyle Class Reference

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 AnchorStyle.None, control will behave as if its anchor was set to Anchor.Top | Anchor.Left if it is the child of another control, or if it is a top-level control the behavior (in the case of the screen resolution changing) is unspecified. More...

Detailed Description

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 AnchorStyle.None, control will behave as if its anchor was set to Anchor.Top | Anchor.Left if it is the child of another control, or if it is a top-level control the behavior (in the case of the screen resolution changing) is unspecified.