16 references to RelativeLocation
System.Windows.Forms (16)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (16)
81
RelativeLocation
relativeLocation = ComparePositions(item.Bounds, ownerClientAreaRelativeDropPoint);
87
if (relativeLocation ==
RelativeLocation
.Above)
91
else if (relativeLocation ==
RelativeLocation
.Below)
95
else if (((item.Alignment == ToolStripItemAlignment.Left) && (relativeLocation ==
RelativeLocation
.Left)) ||
96
((item.Alignment == ToolStripItemAlignment.Right) && (relativeLocation ==
RelativeLocation
.Right)))
137
RelativeLocation
relativeLocation = ComparePositions(item.Bounds, ownerClientAreaRelativeDropPoint);
142
case
RelativeLocation
.Above:
145
case
RelativeLocation
.Below:
148
case
RelativeLocation
.Right:
151
case
RelativeLocation
.Left:
204
private
RelativeLocation
ComparePositions(Rectangle orig, Point check)
215
return
RelativeLocation
.Left;
219
return
RelativeLocation
.Right;
226
return (check.Y <= (orig.Top + heightUnit)) ?
RelativeLocation
.Above :
RelativeLocation
.Below;
230
return
RelativeLocation
.Left;