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