1 write to ToolStrip
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
30
ToolStrip
= toolStrip.OrThrowIfNull();
54 references to ToolStrip
System.Windows.Forms (50)
System\Windows\Forms\Controls\ToolStrips\ToolStripGripRenderEventArgs.cs (3)
21
public Rectangle GripBounds =>
ToolStrip
.GripRectangle;
26
public ToolStripGripDisplayStyle GripDisplayStyle =>
ToolStrip
.GripDisplayStyle;
31
public ToolStripGripStyle GripStyle =>
ToolStrip
.GripStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (7)
58
ToolStrip toolStrip = e.
ToolStrip
;
258
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
261
if (e.
ToolStrip
is ToolStripDropDown)
265
if (e.
ToolStrip
is not ToolStripOverflow)
271
else if (e.
ToolStrip
is MenuStrip)
275
else if (e.
ToolStrip
is StatusStrip)
287
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (5)
25
if (e.
ToolStrip
is ToolStripDropDown)
33
if (e.
ToolStrip
is MenuStrip)
37
else if (e.
ToolStrip
is StatusStrip)
41
else if (e.
ToolStrip
is ToolStripDropDown)
53
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (20)
118
ToolStrip toolStrip = e.
ToolStrip
;
401
ToolStrip toolStrip = e.
ToolStrip
;
480
ScaleObjectSizesIfNeeded(e.
ToolStrip
.DeviceDpi);
484
ToolStrip toolStrip = e.
ToolStrip
;
486
bool rightToLeft = (e.
ToolStrip
.RightToLeft == RightToLeft.Yes);
695
ScaleObjectSizesIfNeeded(e.
ToolStrip
.DeviceDpi);
700
RightToLeft rightToLeft = e.
ToolStrip
.RightToLeft;
704
FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.
ToolStrip
.RightToLeft == RightToLeft.Yes));
903
ToolStrip toolStrip = e.
ToolStrip
;
1026
e.Graphics.DrawLine(p, 0, 0, e.
ToolStrip
.Width, 0);
1031
StatusStrip? statusStrip = e.
ToolStrip
as StatusStrip;
1101
RenderBackgroundGradient(e.Graphics, e.
ToolStrip
, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.
ToolStrip
.Orientation);
1171
ScaleObjectSizesIfNeeded(e.
ToolStrip
.DeviceDpi);
1173
ToolStrip toolStrip = e.
ToolStrip
;
1174
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
1183
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
1193
if (e.
ToolStrip
is ToolStripDropDown toolStripDropDown)
1338
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
1339
ToolStrip toolStrip = e.
ToolStrip
;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
971
if (e.
ToolStrip
is StatusStrip statusStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (7)
63
if (
ToolStrip
is null)
69
_backColor =
ToolStrip
.RawBackColor;
75
if (
ToolStrip
is ToolStripDropDown)
79
else if (
ToolStrip
is MenuStrip)
96
if (
ToolStrip
is ToolStripDropDown dropDown)
109
Rectangle itemBounds = new(
ToolStrip
.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
111
Rectangle overlap =
ToolStrip
.ClientRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (7)
185
ToolStrip toolStrip = e.
ToolStrip
;
237
ToolStrip toolStrip = e.
ToolStrip
;
303
Color backColor = e.
ToolStrip
.BackColor;
325
RenderSmall3DBorderInternal(g, bounds, ToolBarState.Hot, e.
ToolStrip
.RightToLeft == RightToLeft.Yes);
766
e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, 0, e.
ToolStrip
.Width, 0);
776
vsRenderer.DrawBackground(e.Graphics, new Rectangle(0, 0, e.
ToolStrip
.Width - 1, e.
ToolStrip
.Height - 1));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1871
Rectangle bounds = new(Point.Empty, e.
ToolStrip
.Size);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
49
Assert.Equal(toolStrip, e.
ToolStrip
);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
45
Assert.Same(toolStrip, e.
ToolStrip
);
69
Assert.Same(toolStrip, e.
ToolStrip
);