19 references to RelativeLocation
System.Windows.Forms (19)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (19)
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)
209
RelativeLocation
relativeLocation =
RelativeLocation
.Left;
216
relativeLocation =
RelativeLocation
.Left;
221
relativeLocation =
RelativeLocation
.Right;
229
RelativeLocation
relativeLocation = (check.Y <= (orig.Top + heightUnit)) ?
230
RelativeLocation
.Above
231
:
RelativeLocation
.Below;
237
return
RelativeLocation
.Left;