19 references to RelativeLocation
System.Windows.Forms (19)
winforms\Managed\System\WinForms\ToolStrip.cs (19)
5419
RelativeLocation
relativeLocation = ComparePositions(item.Bounds, ownerClientAreaRelativeDropPoint);
5425
if (relativeLocation ==
RelativeLocation
.Above) {
5428
else if (relativeLocation ==
RelativeLocation
.Below) {
5431
else if (((item.Alignment == ToolStripItemAlignment.Left) && (relativeLocation ==
RelativeLocation
.Left)) ||
5432
((item.Alignment == ToolStripItemAlignment.Right) && (relativeLocation ==
RelativeLocation
.Right))) {
5474
RelativeLocation
relativeLocation = ComparePositions(item.Bounds, ownerClientAreaRelativeDropPoint);
5481
case
RelativeLocation
.Above:
5484
case
RelativeLocation
.Below:
5487
case
RelativeLocation
.Right:
5490
case
RelativeLocation
.Left:
5541
private
RelativeLocation
ComparePositions(Rectangle orig, Point check) {
5545
RelativeLocation
relativeLocation =
RelativeLocation
.Left;
5551
relativeLocation =
RelativeLocation
.Left;
5555
relativeLocation =
RelativeLocation
.Right;
5562
RelativeLocation
relativeLocation = (check.Y <= (orig.Top + heightUnit)) ?
5563
RelativeLocation
.Above
5564
:
RelativeLocation
.Below;
5570
return
RelativeLocation
.Left;