Click or drag to resize
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
C#
public enum RelativePosition
Members
  Member nameValueDescription
TopLeft0
TopCenter1
TopRight2
LeftMiddle3
CenterMiddle4
RightMiddle5
BottomLeft6
BottomCenter7
BottomRight8
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