RelativePosition Enumeration |
Refers to the position of a predefined point relative to a rectangle
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public enum RelativePosition
Members
| Member name | Value | Description |
---|
| TopLeft | 0 | |
| TopCenter | 1 | |
| TopRight | 2 | |
| LeftMiddle | 3 | |
| CenterMiddle | 4 | |
| RightMiddle | 5 | |
| BottomLeft | 6 | |
| BottomCenter | 7 | |
| BottomRight | 8 | |
Remarks Many operations involving the position of one object relative to another
object rely on RelativePosition to determine how the two objects' rectangles are
aligned. The positions defined in this enumeration generally refer to
a point inside the rectangle at the specified position. For example, RightMiddle
would refer to the point immediately within the middle of the right side of the
rectangle. In the case of aligning two rectangles, this means that the right
sides will match up exactly and the vertical center of one rectangle would be
aligned with the vertical center of the other.
See Also