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