95 references to ToolStripDropDownDirection
System.Windows.Forms (95)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (3)
102Rectangle bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.AboveLeft); 105bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.BelowLeft); 108bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.AboveRight);
winforms\Managed\System\WinForms\ToolStrip.cs (24)
85private ToolStripDropDownDirection toolStripDropDownDirection = ToolStripDropDownDirection.Default; 697public virtual ToolStripDropDownDirection DefaultDropDownDirection { 699ToolStripDropDownDirection direction = toolStripDropDownDirection; 700if (direction == ToolStripDropDownDirection.Default) { 705direction = (actualDock == DockStyle.Right) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right; 708direction = ToolStripDropDownDirection.Right ; 713direction = ((Dock == DockStyle.Right) && (RightToLeft == RightToLeft.No)) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right; 716direction = ToolStripDropDownDirection.Right ; 727direction = (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.AboveLeft : ToolStripDropDownDirection.AboveRight; 731direction = (RightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight; 740case ToolStripDropDownDirection.AboveLeft: 741case ToolStripDropDownDirection.AboveRight: 742case ToolStripDropDownDirection.BelowLeft: 743case ToolStripDropDownDirection.BelowRight: 744case ToolStripDropDownDirection.Left: 745case ToolStripDropDownDirection.Right: 746case ToolStripDropDownDirection.Default: 749throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripDropDownDirection)); 4560return (toolStripDropDownDirection != ToolStripDropDownDirection.Default);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (16)
45private ToolStripDropDownDirection childDropDownDirection = ToolStripDropDownDirection.Default; 382public override ToolStripDropDownDirection DefaultDropDownDirection { 384if (childDropDownDirection == ToolStripDropDownDirection.Default) { 385return (RightToLeft == RightToLeft.Yes)? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right; 1239internal Rectangle CalculateDropDownLocation(Point start, ToolStripDropDownDirection dropDownDirection) { 1250case ToolStripDropDownDirection.AboveLeft: 1254case ToolStripDropDownDirection.AboveRight: 1257case ToolStripDropDownDirection.BelowRight: 1258case ToolStripDropDownDirection.Right: 1260case ToolStripDropDownDirection.BelowLeft: 1261case ToolStripDropDownDirection.Left: 2011return (childDropDownDirection != ToolStripDropDownDirection.Default); 2056public void Show(Control control, Point position, ToolStripDropDownDirection direction) { 2084public void Show(Point position, ToolStripDropDownDirection direction) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (46)
25private ToolStripDropDownDirection toolStripDropDownDirection = ToolStripDropDownDirection.Default; 109public ToolStripDropDownDirection DropDownDirection { 111if (toolStripDropDownDirection == ToolStripDropDownDirection.Default) { 114ToolStripDropDownDirection dropDownDirection = parent.DefaultDropDownDirection; 128ToolStripDropDownDirection newDropDownDirection = RTLTranslateDropDownDirection(dropDownDirection, toggledRightToLeft); 150case ToolStripDropDownDirection.AboveLeft: 151case ToolStripDropDownDirection.AboveRight: 152case ToolStripDropDownDirection.BelowLeft: 153case ToolStripDropDownDirection.BelowRight: 154case ToolStripDropDownDirection.Left: 155case ToolStripDropDownDirection.Right: 156case ToolStripDropDownDirection.Default: 159throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripDropDownDirection)); 197ToolStripDropDownDirection dropDownDirection = DropDownDirection; 310private Rectangle DropDownDirectionToDropDownBounds(ToolStripDropDownDirection dropDownDirection, Rectangle dropDownBounds) { 314case ToolStripDropDownDirection.AboveLeft: 318case ToolStripDropDownDirection.AboveRight: 321case ToolStripDropDownDirection.BelowRight: 324case ToolStripDropDownDirection.BelowLeft: 328case ToolStripDropDownDirection.Right: 336case ToolStripDropDownDirection.Left: 380private Rectangle GetDropDownBounds(ToolStripDropDownDirection dropDownDirection) { 395dropDownBounds = DropDownDirectionToDropDownBounds(!rtl ? ToolStripDropDownDirection.Right : ToolStripDropDownDirection.Left, dropDownBounds); 400dropDownBounds = DropDownDirectionToDropDownBounds(!rtl ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right, dropDownBounds); 628private ToolStripDropDownDirection RTLTranslateDropDownDirection(ToolStripDropDownDirection dropDownDirection, RightToLeft rightToLeft) { 630case ToolStripDropDownDirection.AboveLeft: 631return ToolStripDropDownDirection.AboveRight; 632case ToolStripDropDownDirection.AboveRight: 633return ToolStripDropDownDirection.AboveLeft; 634case ToolStripDropDownDirection.BelowRight: 635return ToolStripDropDownDirection.BelowLeft; 636case ToolStripDropDownDirection.BelowLeft: 637return ToolStripDropDownDirection.BelowRight; 638case ToolStripDropDownDirection.Right: 639return ToolStripDropDownDirection.Left; 640case ToolStripDropDownDirection.Left: 641return ToolStripDropDownDirection.Right; 647return (rightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right; 650return (rightToLeft == RightToLeft.Yes) ? ToolStripDropDownDirection.BelowLeft : ToolStripDropDownDirection.BelowRight; 713return (toolStripDropDownDirection != ToolStripDropDownDirection.Default);
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (6)
120case ToolStripDropDownDirection.AboveLeft: 121case ToolStripDropDownDirection.AboveRight: 125case ToolStripDropDownDirection.BelowRight: 126case ToolStripDropDownDirection.BelowLeft: 134case ToolStripDropDownDirection.Right: 135case ToolStripDropDownDirection.Left: