1 override of Size
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
352
public override Size
Size
215 writes to Size
Accessibility_Core_App (119)
DataControls.Designer.cs (16)
116
this.bindingNavigatorAddNewItem.
Size
= new System.Drawing.Size(23, 25);
123
this.bindingNavigatorCountItem.
Size
= new System.Drawing.Size(35, 25);
133
this.bindingNavigatorDeleteItem.
Size
= new System.Drawing.Size(23, 25);
142
this.bindingNavigatorMoveFirstItem.
Size
= new System.Drawing.Size(23, 25);
151
this.bindingNavigatorMovePreviousItem.
Size
= new System.Drawing.Size(23, 25);
157
this.bindingNavigatorSeparator.
Size
= new System.Drawing.Size(6, 28);
171
this.bindingNavigatorSeparator1.
Size
= new System.Drawing.Size(6, 28);
179
this.bindingNavigatorMoveNextItem.
Size
= new System.Drawing.Size(23, 25);
188
this.bindingNavigatorMoveLastItem.
Size
= new System.Drawing.Size(23, 25);
194
this.bindingNavigatorSeparator2.
Size
= new System.Drawing.Size(6, 28);
201
this.toolStripButton1.
Size
= new System.Drawing.Size(114, 25);
207
this.toolStripLabel1.
Size
= new System.Drawing.Size(86, 25);
215
this.toolStripSplitButton1.
Size
= new System.Drawing.Size(149, 25);
223
this.toolStripDropDownButton1.
Size
= new System.Drawing.Size(180, 25);
229
this.toolStripSeparator1.
Size
= new System.Drawing.Size(6, 28);
260
this.toolStripLabel2.
Size
= new System.Drawing.Size(282, 15);
Menu_Toolbars_controls.Designer.cs (54)
132
menuStripToolStripMenuItem.
Size
= new Size(146, 24);
138
item1ToolStripMenuItem.
Size
= new Size(130, 26);
145
shortCutsToolStripMenuItem.
Size
= new Size(146, 24);
151
item2ToolStripMenuItem.
Size
= new Size(130, 26);
158
fileToolStripMenuItem.
Size
= new Size(46, 28);
168
newToolStripMenuItem.
Size
= new Size(181, 26);
177
openToolStripMenuItem.
Size
= new Size(181, 26);
183
toolStripSeparator.
Size
= new Size(178, 6);
191
saveToolStripMenuItem.
Size
= new Size(181, 26);
197
saveAsToolStripMenuItem.
Size
= new Size(181, 26);
203
toolStripSeparator1.
Size
= new Size(178, 6);
211
printToolStripMenuItem.
Size
= new Size(181, 26);
219
printPreviewToolStripMenuItem.
Size
= new Size(181, 26);
225
toolStripSeparator2.
Size
= new Size(178, 6);
230
exitToolStripMenuItem.
Size
= new Size(181, 26);
237
editToolStripMenuItem.
Size
= new Size(49, 28);
245
undoToolStripMenuItem.
Size
= new Size(179, 26);
252
redoToolStripMenuItem.
Size
= new Size(179, 26);
258
toolStripSeparator3.
Size
= new Size(176, 6);
266
cutToolStripMenuItem.
Size
= new Size(179, 26);
275
copyToolStripMenuItem.
Size
= new Size(179, 26);
284
pasteToolStripMenuItem.
Size
= new Size(179, 26);
290
toolStripSeparator4.
Size
= new Size(176, 6);
295
selectAllToolStripMenuItem.
Size
= new Size(179, 26);
302
toolsToolStripMenuItem.
Size
= new Size(58, 28);
309
customizeToolStripMenuItem.
Size
= new Size(161, 26);
315
optionsToolStripMenuItem.
Size
= new Size(161, 26);
322
helpToolStripMenuItem.
Size
= new Size(55, 28);
329
contentsToolStripMenuItem.
Size
= new Size(150, 26);
335
indexToolStripMenuItem.
Size
= new Size(150, 26);
341
searchToolStripMenuItem.
Size
= new Size(150, 26);
347
toolStripSeparator5.
Size
= new Size(147, 6);
352
aboutToolStripMenuItem.
Size
= new Size(150, 26);
359
toolStripMenuItem1.
Size
= new Size(156, 28);
367
uncheckedCheckOnClickToolStripMenuItem.
Size
= new Size(298, 26);
376
checkCheckOnClickToolStripMenuItem.
Size
= new Size(298, 26);
384
checkedCheckOnClickFToolStripMenuItem.
Size
= new Size(298, 26);
393
indeterminateToolStripMenuItem.
Size
= new Size(298, 26);
401
indeterminateCheckOnClickFToolStripMenuItem.
Size
= new Size(298, 26);
438
toolStripDropDownButton1.
Size
= new Size(34, 27);
444
toolStripSeparator9.
Size
= new Size(222, 6);
454
toolStripMenuItem3.
Size
= new Size(225, 26);
464
toolStripSplitButton1.
Size
= new Size(39, 27);
475
toolStripSeparator8.
Size
= new Size(222, 6);
485
toolStripMenuItem2.
Size
= new Size(225, 26);
491
toolStripStatusLabel1.
Size
= new Size(151, 23);
517
newToolStripButton.
Size
= new Size(63, 28);
523
toolStripSeparator7.
Size
= new Size(6, 31);
531
toolStripButton1.
Size
= new Size(197, 28);
541
toolStripButton2.
Size
= new Size(198, 28);
553
toolStripButton3.
Size
= new Size(182, 28);
564
toolStripButton4.
Size
= new Size(181, 28);
576
toolStripButton5.
Size
= new Size(219, 28);
587
toolStripButton6.
Size
= new Size(218, 24);
ToolStripContainer.Designer.cs (49)
156
this.toolStripButton1.
Size
= new System.Drawing.Size(36, 36);
167
this.toolStripSplitButton1.
Size
= new System.Drawing.Size(48, 36);
173
this.toolStripToolStripMenuItem.
Size
= new System.Drawing.Size(180, 22);
182
this.newToolStripButton.
Size
= new System.Drawing.Size(36, 36);
191
this.openToolStripButton.
Size
= new System.Drawing.Size(36, 36);
200
this.saveToolStripButton.
Size
= new System.Drawing.Size(36, 36);
209
this.printToolStripButton.
Size
= new System.Drawing.Size(36, 36);
215
this.toolStripSeparator6.
Size
= new System.Drawing.Size(6, 39);
223
this.cutToolStripButton.
Size
= new System.Drawing.Size(36, 36);
232
this.copyToolStripButton.
Size
= new System.Drawing.Size(36, 36);
241
this.pasteToolStripButton.
Size
= new System.Drawing.Size(36, 36);
247
this.toolStripSeparator7.
Size
= new System.Drawing.Size(6, 39);
255
this.helpToolStripButton.
Size
= new System.Drawing.Size(36, 36);
296
this.toolStripDropDownButton1.
Size
= new System.Drawing.Size(45, 36);
302
this.statusStripToolStripMenuItem.
Size
= new System.Drawing.Size(130, 22);
311
this.toolStripSplitButton2.
Size
= new System.Drawing.Size(48, 36);
317
this.toolStripStatusLabel1.
Size
= new System.Drawing.Size(118, 33);
324
this.toolStripStatusLabel2.
Size
= new System.Drawing.Size(118, 33);
351
this.menuStripToolStripMenuItem.
Size
= new System.Drawing.Size(74, 20);
358
this.menuStripItem1ToolStripMenuItem.
Size
= new System.Drawing.Size(159, 22);
376
this.fileToolStripMenuItem.
Size
= new System.Drawing.Size(37, 20);
385
this.newToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
393
this.openToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
399
this.toolStripSeparator.
Size
= new System.Drawing.Size(140, 6);
406
this.saveToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
412
this.saveAsToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
418
this.toolStripSeparator1.
Size
= new System.Drawing.Size(140, 6);
425
this.printToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
433
this.printPreviewToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
439
this.toolStripSeparator2.
Size
= new System.Drawing.Size(140, 6);
444
this.exitToolStripMenuItem.
Size
= new System.Drawing.Size(143, 22);
459
this.editToolStripMenuItem.
Size
= new System.Drawing.Size(39, 20);
466
this.undoToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
472
this.redoToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
478
this.toolStripSeparator3.
Size
= new System.Drawing.Size(119, 6);
485
this.cutToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
493
this.copyToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
501
this.pasteToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
507
this.toolStripSeparator4.
Size
= new System.Drawing.Size(119, 6);
512
this.selectAllToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
521
this.toolsToolStripMenuItem.
Size
= new System.Drawing.Size(46, 20);
528
this.customizeToolStripMenuItem.
Size
= new System.Drawing.Size(130, 22);
534
this.optionsToolStripMenuItem.
Size
= new System.Drawing.Size(130, 22);
546
this.helpToolStripMenuItem.
Size
= new System.Drawing.Size(44, 20);
553
this.contentsToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
559
this.indexToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
565
this.searchToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
571
this.toolStripSeparator5.
Size
= new System.Drawing.Size(119, 6);
576
this.aboutToolStripMenuItem.
Size
= new System.Drawing.Size(122, 22);
DesignSurface (14)
MainForm.Designer.cs (14)
187
this.editToolStripMenuItem.
Size
= new System.Drawing.Size(47, 24);
194
this.ToolStripMenuItemUnDo.
Size
= new System.Drawing.Size(165, 24);
202
this.ToolStripMenuItemReDo.
Size
= new System.Drawing.Size(165, 24);
209
this.toolStripSeparator3.
Size
= new System.Drawing.Size(162, 6);
217
this.ToolStripMenuItemCut.
Size
= new System.Drawing.Size(165, 24);
227
this.ToolStripMenuItemCopy.
Size
= new System.Drawing.Size(165, 24);
237
this.ToolStripMenuItemPaste.
Size
= new System.Drawing.Size(165, 24);
245
this.ToolStripMenuItemDelete.
Size
= new System.Drawing.Size(165, 24);
253
this.ToolStripMenuItemKeyInvokeSmartTag.
Size
= new System.Drawing.Size(165, 24);
260
this.toolStripSeparator4.
Size
= new System.Drawing.Size(162, 6);
267
this.toolStripMenuItemTools.
Size
= new System.Drawing.Size(57, 24);
273
this.toolStripMenuItemTabOrder.
Size
= new System.Drawing.Size(145, 24);
282
this.helpToolStripMenuItem.
Size
= new System.Drawing.Size(53, 24);
288
this.ToolStripMenuItemAbout.
Size
= new System.Drawing.Size(128, 24);
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1365
_toolStripOverflowButton.
Size
= _toolStripOverflowButton.GetPreferredSize(DisplayRectangle.Size - Padding.Size);
3261
_toolStripOverflowButton!.
Size
= _toolStripOverflowButton.GetPreferredSize(DisplayRectangle.Size - Padding.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
367
base.
Size
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
154
Size
= DefaultSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
539
menuItem.
Size
= Size;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1384
_centerLabel.
Size
= _miniToolStrip.DisplayRectangle.Size - _centerLabel.Margin.Size;
1404
_addItemButton.
Size
= _miniToolStrip.DisplayRectangle.Size - _addItemButton.Margin.Size;
System.Windows.Forms.Tests (19)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
953
Size
= new Size(50, 25),
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (1)
934
Size
= new Size(50, 25)
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
994
Size
= new Size(25, 25)
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
117
item.
Size
= new Size(0, 0);
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
217
Size
= new(25, 25),
System\Windows\Forms\ToolStripItemTests.cs (13)
7843
item.
Size
= value;
7848
item.
Size
= value;
7870
item.
Size
= value;
7877
item.
Size
= value;
7913
item.
Size
= value;
7923
item.
Size
= value;
7972
item.
Size
= value;
7979
item.
Size
= value;
8022
item.
Size
= value;
8032
item.
Size
= value;
15401
toolStripMenuItem1.
Size
= new Size(10, 30);
15402
toolStripMenuItem2.
Size
= new Size(15, 30);
15403
toolStripMenuItem3.
Size
= new Size(15, 30);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
308
Size
= new Size(100, 50)
WinFormsControlsTest (56)
MenuStripAndCheckedListBox.Designer.cs (24)
91
this.fileToolStripMenuItem.
Size
= new System.Drawing.Size(108, 38);
98
this.newToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
106
this.openToolStripMenuItem1.
Size
= new System.Drawing.Size(401, 44);
112
this.toolStripSeparator1.
Size
= new System.Drawing.Size(398, 6);
122
this.memoryCardFileToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
131
this.navigationToolStripMenuItem.
Size
= new System.Drawing.Size(265, 44);
140
this.newToolStripMenuItem1.
Size
= new System.Drawing.Size(197, 44);
148
this.settingsEditorToolStripMenuItem.
Size
= new System.Drawing.Size(304, 44);
154
this.openToolStripMenuItem.
Size
= new System.Drawing.Size(208, 44);
160
this.saveToolStripMenuItem.
Size
= new System.Drawing.Size(265, 44);
166
this.saveAsToolStripMenuItem.
Size
= new System.Drawing.Size(265, 44);
172
this.exitToolStripMenuItem1.
Size
= new System.Drawing.Size(265, 44);
178
this.toolStripSeparator2.
Size
= new System.Drawing.Size(398, 6);
183
this.exitToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
189
this.editToolStripMenuItem.
Size
= new System.Drawing.Size(75, 38);
195
this.viewToolStripMenuItem.
Size
= new System.Drawing.Size(86, 38);
201
this.insertToolStripMenuItem.
Size
= new System.Drawing.Size(94, 38);
207
this.checkStateSamplesToolStripMenuItem.
Size
= new System.Drawing.Size(200, 38);
220
this.uncheckedToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
228
this.uncheckedCheckOnClickToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
238
this.checkedToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
248
this.checkedCheckOnClickToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
257
this.indeterminateToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
267
this.indeterminateCheckOnClickToolStripMenuItem.
Size
= new System.Drawing.Size(401, 44);
ToolStripSeparatorPreferredSize.cs (2)
58
_toolStripLabel1.
Size
= new System.Drawing.Size(86, 22);
64
_toolStripLabel2.
Size
= new System.Drawing.Size(86, 22);
ToolStripTests.Designer.cs (30)
143
this.toolStrip4_Label1.
Size
= new System.Drawing.Size(86, 22);
150
this.toolStrip4_MenuItem1.
Size
= new System.Drawing.Size(180, 40);
157
this.toolStrip4_SubMenuItem.
Size
= new System.Drawing.Size(481, 44);
165
this.toolStrip2_Button1.
Size
= new System.Drawing.Size(114, 22);
174
this.toolStrip2_Button2.
Size
= new System.Drawing.Size(114, 22);
182
this.toolStrip2_Button3.
Size
= new System.Drawing.Size(114, 22);
191
this.toolStrip2_Button4.
Size
= new System.Drawing.Size(114, 22);
198
this.toolStrip2_Button5.
Size
= new System.Drawing.Size(114, 22);
205
this.toolStrip2_Button6.
Size
= new System.Drawing.Size(114, 22);
211
this.toolStrip2_SplitButton1_ChildButton1.
Size
= new System.Drawing.Size(180, 22);
217
this.toolStrip2_SplitButton1_ChildButton2.
Size
= new System.Drawing.Size(180, 22);
224
this.toolStrip3_MenuItem1.
Size
= new System.Drawing.Size(180, 40);
232
this.toolStrip3_MenuItem2.
Size
= new System.Drawing.Size(180, 40);
240
this.uncheckedCheckOnClickToolStripMenuItem.
Size
= new System.Drawing.Size(481, 44);
249
this.checkCheckOnClickToolStripMenuItem.
Size
= new System.Drawing.Size(481, 44);
257
this.thirdLevelItem.
Size
= new System.Drawing.Size(481, 44);
265
this.thirdLevelButton.
Size
= new System.Drawing.Size(481, 44);
290
this.toolStrip2_SplitButton2.
Size
= new System.Drawing.Size(133, 22);
297
this.toolStripMenuItem1.
Size
= new System.Drawing.Size(481, 44);
307
this.toolStrip2_DropDownButton2.
Size
= new System.Drawing.Size(180, 22);
314
this.toolStripMenuItem2.
Size
= new System.Drawing.Size(481, 44);
323
this.checkedCheckOnClickFToolStripMenuItem.
Size
= new System.Drawing.Size(481, 44);
332
this.indeterminateToolStripMenuItem.
Size
= new System.Drawing.Size(481, 44);
340
this.indeterminateCheckOnClickFToolStripMenuItem.
Size
= new System.Drawing.Size(481, 44);
351
this.toolStrip2_SplitButton1.
Size
= new System.Drawing.Size(133, 22);
357
this.toolStrip2_DropDownButton1_ChildButton1.
Size
= new System.Drawing.Size(180, 22);
363
this.toolStrip2_DropDownButton1_ChildButton2.
Size
= new System.Drawing.Size(180, 22);
373
this.toolStrip2_DropDownButton1.
Size
= new System.Drawing.Size(180, 22);
406
this.toolStripLabel1.
Size
= new System.Drawing.Size(86, 22);
430
this.toolStripStatusLabel1.
Size
= new System.Drawing.Size(118, 17);
96 references to Size
System.Windows.Forms (44)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
2398
return item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.
Size
;
3527
Size itemSize = item.
Size
;
3557
item.
Size
.Width,
3558
item.
Size
.Height,
3575
item.
Size
.Width,
3576
item.
Size
.Height,
4071
item.SetBounds(new Rectangle(location, item.
Size
));
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
354
get => base.
Size
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
141
Rectangle ownerItemBounds = new(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords),
Size
);
384
Rectangle itemScreenBounds = new(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords),
Size
);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (6)
135
Rectangle bounds = new(Point.Empty, e.Item.
Size
);
187
Rectangle bounds = new(Point.Empty, menuItem.
Size
);
208
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.
Size
), arrowColor, ArrowDirection.Down));
350
Rectangle bounds = new(Point.Empty, e.Item.
Size
);
410
Rectangle bounds = new(Point.Empty, e.Item.
Size
);
442
Rectangle bounds = new(Point.Empty, e.Item.
Size
);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
99
Rectangle bounds = new(Point.Empty, _ownerItem.
Size
);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
539
menuItem.Size =
Size
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (8)
230
Rectangle bounds = new(Point.Empty, item.
Size
);
248
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.
Size
), e.Vertical);
266
Rectangle bounds = new(Point.Empty, item.
Size
);
347
Rectangle bounds = new(Point.Empty, item?.
Size
?? Size.Empty);
546
Rectangle bounds = new(Point.Empty, item.
Size
);
1108
Rectangle bounds = new(Point.Empty, item.
Size
);
1217
Rectangle overflowBoundsFill = new(Point.Empty, e.Item.
Size
);
1567
Rectangle bounds = new(Point.Empty, item.
Size
);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
109
Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.
Size
);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
548
/// Determines if the <see cref="ToolStripItem.
Size
"/> property needs to be persisted.
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (8)
40
Size overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.GetPreferredSize(_displayRectangle.Size) : toolStrip.OverflowButton.
Size
;
86
Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.
Size
;
136
Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.
Size
;
270
itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.
Size
;
339
Rectangle bounds = LayoutUtils.VAlign(item.
Size
, _displayRectangle, AnchorStyles.None);
412
itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.
Size
;
472
Rectangle bounds = LayoutUtils.HAlign(item.
Size
, _displayRectangle, AnchorStyles.None);
584
Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.
Size
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (8)
388
vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.
Size
));
394
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.
Size
), arrowColor, ArrowDirection.Down));
421
Rectangle bounds = new(Point.Empty, item.
Size
);
444
Rectangle fillRect = new(Point.Empty, item.
Size
);
490
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.
Size
), e.Vertical);
530
Rectangle bounds = new(Point.Empty, splitButton.
Size
);
656
vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.
Size
));
668
RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.
Size
), state, (item.RightToLeft == RightToLeft.Yes));
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1886
Rectangle bounds = new(Point.Empty, item.
Size
);
1982
Rectangle bounds = new(Point.Empty, splitButton.
Size
);
System.Windows.Forms.Tests (48)
System\Windows\Forms\ToolStripButtonTests.cs (6)
83
Assert.Equal(new Size(23, 23), item.
Size
);
164
Assert.Equal(new Size(23, 23), item.
Size
);
251
Assert.Equal(new Size(23, 23), item.
Size
);
341
Assert.Equal(new Size(23, 23), item.
Size
);
429
Assert.Equal(new Size(23, 23), item.
Size
);
527
Assert.Equal(new Size(23, 23), item.
Size
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
83
Assert.Equal(new Size(23, 23), item.
Size
);
172
Assert.Equal(new Size(23, 23), item.
Size
);
271
Assert.Equal(new Size(23, 23), item.
Size
);
379
Assert.Equal(new Size(23, 23), item.
Size
);
System\Windows\Forms\ToolStripItemTests.cs (24)
82
Assert.Equal(new Size(23, 23), item.
Size
);
167
Assert.Equal(new Size(23, 23), item.
Size
);
262
Assert.Equal(new Size(23, 23), item.
Size
);
7817
Assert.Equal(new Size(10, 11), item.
Size
);
7844
Assert.Equal(value, item.
Size
);
7849
Assert.Equal(value, item.
Size
);
7871
Assert.Equal(value, item.
Size
);
7878
Assert.Equal(value, item.
Size
);
7914
Assert.Equal(value, item.
Size
);
7924
Assert.Equal(value, item.
Size
);
7973
Assert.Equal(value, item.
Size
);
7980
Assert.Equal(value, item.
Size
);
8023
Assert.Equal(value, item.
Size
);
8033
Assert.Equal(value, item.
Size
);
14560
Assert.Equal(bounds.Size, item.
Size
);
14568
Assert.Equal(bounds.Size, item.
Size
);
14598
Assert.Equal(bounds.Size, item.
Size
);
14608
Assert.Equal(bounds.Size, item.
Size
);
14652
Assert.Equal(bounds.Size, item.
Size
);
14665
Assert.Equal(bounds.Size, item.
Size
);
14726
Assert.Equal(bounds.Size, item.
Size
);
14736
Assert.Equal(bounds.Size, item.
Size
);
14787
Assert.Equal(bounds.Size, item.
Size
);
14800
Assert.Equal(bounds.Size, item.
Size
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
92
Assert.Equal(new Size(32, 19), item.
Size
);
353
clone.
Size
.Should().Be(original.
Size
);
System\Windows\Forms\ToolStripSeparatorTests.cs (11)
80
Assert.Equal(new Size(6, 6), item.
Size
);
1380
Assert.Equal(bounds.Size, item.
Size
);
1388
Assert.Equal(bounds.Size, item.
Size
);
1418
Assert.Equal(bounds.Size, item.
Size
);
1428
Assert.Equal(bounds.Size, item.
Size
);
1480
Assert.Equal(new Size(57, bounds.Height), item.
Size
);
1490
Assert.Equal(new Size(57, bounds.Height), item.
Size
);
1548
Assert.Equal(bounds.Size, item.
Size
);
1558
Assert.Equal(bounds.Size, item.
Size
);
1602
Assert.Equal(bounds.Size, item.
Size
);
1612
Assert.Equal(bounds.Size, item.
Size
);
WinFormsControlsTest (2)
ToolStripSeparatorPreferredSize.cs (2)
26
_label1.Text = $"Layout: {_toolStrip1.LayoutStyle}, Size: {_toolStripSeparator1.
Size
}, GetPreferredSize: {_toolStripSeparator1.GetPreferredSize(_toolStripSeparator1.
Size
)}";