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