67 writes to Width
DesignSurface (1)
MainForm.cs (1)
328
richTextBox.
Width
= toolStripContainer.Width;
PresentationUI (2)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
170
_addButton.
Width
= maxWidth;
171
_removeButton.
Width
= maxWidth;
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
256
control.
Width
= Twip2Pixel(value, xDirection: true);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
10171
int vertScrollBarWidth = _vertScrollBar.
Width
= SystemInformation.VerticalScrollBarWidth;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
85
_detailsTextBox.
Width
= _overarchingTableLayoutPanel.Width - _detailsTextBox.Margin.Horizontal;
304
_detailsButton.
Width
= (int)Math.Ceiling(detailsWidth * (_ownerGrid.UseCompatibleTextRendering ? 1.15f : 1.4f));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3725
DropDownListBox.
Width
= Math.Max(maxWidth, GetRectangle(row, RowValue).Width);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
265
Width
= requestedSize;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
382
Width
= _requestedDim;
710
Width
= _autoSize ? PreferredDimension : saveDim;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
482
_upDownButtons.
Width
= _defaultButtonsWidth;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
283
set => base.
Width
= value;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
802
_hScrollBar.
Width
= availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0);
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
106
listBox.
Width
= Math.Max(maxWidth, EditRegionSize.Width);
338
hostedControl.
Width
= Math.Max(hostedControl.Width, EditRegionSize.Width - 2);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
48
Width
= width;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
115
EditControl.
Width
= _editRegionSize.Width - GetTextBoxRightPadding(textBoxPreferredHeight) - GetTextBoxLeftPadding(textBoxPreferredHeight) - specialPadding;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
116
Width
= Math.Max(Width, PreferredWidth + (SystemInformation.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
173
Width
= _addNewCtrl.Height,
298
Width
= addNewWidth,
579
Width
= Math.Max(Width, _treeViewCtrl is null ? 0 : _treeViewCtrl.PreferredWidth + (SystemInformation.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
498
controls[i].
Width
= size.Width;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1522
_miniToolStrip.
Width
= _centerLabel.Width + 2;
System.Windows.Forms.Tests (35)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
39
Width
= 85
71
Width
= 85
System\Windows\Forms\ControlTests.Methods.cs (5)
1877
Width
= 20,
1891
Width
= 20,
1928
Width
= 20,
1942
Width
= width,
1956
Width
= 20,
System\Windows\Forms\ControlTests.Properties.cs (12)
13146
control.
Width
= value;
13165
control.
Width
= value;
13256
control.
Width
= value;
13275
control.
Width
= value;
13344
control.
Width
= value;
13363
control.
Width
= value;
13452
control.
Width
= value;
13472
control.
Width
= value;
13564
control.
Width
= value;
13586
control.
Width
= value;
13701
control.
Width
= value;
13728
control.
Width
= value;
System\Windows\Forms\ScrollableControlTests.cs (1)
230
Width
= childWidth,
System\Windows\Forms\SplitterTests.cs (9)
430
Width
= 50,
496
Width
= 50,
1142
Width
= 100,
1197
Width
= 100,
1242
Width
= 100,
1314
Width
= 100,
1361
Width
= 100,
2009
Width
= 100,
2110
Width
= 100,
TextBoxBaseTests.cs (1)
3920
Width
= 0
WebBrowserBaseTests.cs (5)
669
Width
= 20,
683
Width
= 20,
720
Width
= 20,
734
Width
= width,
748
Width
= 20,
System.Windows.Forms.UI.IntegrationTests (2)
DesignBehaviorsTests.cs (1)
43
treeView.
Width
= 100;
ListBoxItemAccessibleObjestTests.cs (1)
26
listBox.
Width
= 100;
WinFormsControlsTest (6)
FormShowInTaskbar.cs (2)
13
Width
= 600;
33
Width
= 680,
RichTextBoxes.cs (3)
121
Width
= 500,
129
TextBox textBox = new() { Left = 50, Top = 50,
Width
= 400 };
130
Button confirmation = new() { Text = "Ok", Left = 350,
Width
= 100, Top = 70, DialogResult = DialogResult.OK };
TrackBars.cs (1)
43
trackBar1.
Width
= ClientRectangle.Width - trackBar1.Left * 2;
499 references to Width
DesignSurface (1)
MainForm.cs (1)
328
richTextBox.Width = toolStripContainer.
Width
;
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
92
Dim labelSizeNeeded As SizeF = labelGraphics.MeasureString(prompt, Label.Font, Label.
Width
)
PresentationUI (3)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
169
int maxWidth = Math.Max(_addButton.
Width
, _removeButton.
Width
);
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
122
get { return _listBoxSummary.
Width
- IconWidth; }
System.Windows.Forms (145)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
251
get => Pixel2Twip(GetControl()?.
Width
?? 0, xDirection: true);
System\Windows\Forms\ActiveX\AxHost.cs (1)
1558
SetExtent(
Width
, Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
465
PInvoke.SetWindowExtEx(hdcDraw, _control.
Width
, _control.Height, (SIZE*)&sWindowExt);
2017
rect.right = rect.left + _control.
Width
;
System\Windows\Forms\BoundsSpecified.cs (1)
40
/// Both <see cref="Control.
Width
"/> and <see cref="Control.Height"/>
System\Windows\Forms\Control.cs (8)
4875
int width = Math.Min(
Width
, targetBounds.Width);
8186
Rectangle shift = new(-Left, -Top, parent.
Width
, parent.Height);
8688
viewportOrg.X +
Width
,
10015
/// <param name="width">The new <see cref="
Width
" /> property value of the control.</param>
10761
bool newSize =
Width
!= width || Height != height || _clientWidth != clientWidth || _clientHeight != clientHeight;
11080
client = new Point(
Width
/ 2, Height / 2);
11871
if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOSIZE) == 0 && (wp->cx !=
Width
|| wp->cy != Height))
12604
if (sizeProperty is not null && !sizeProperty.IsReadOnly && (bounds.Width !=
Width
|| bounds.Height != Height))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
383
Control.
Width
- (2 * ButtonBorderSize),
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
431
get => Properties.TryGetValue(s_propDropDownWidth, out int dropDownWidth) ? dropDownWidth :
Width
;
3808
if (
Width
== 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
470
_vertScrollBar.Left = ClientRectangle.Width - _vertScrollBar.
Width
;
2130
rectDisplay.Width -= _vertScrollBar.
Width
;
2133
rectDisplay.X = _vertScrollBar.
Width
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
8990
minimumWidth += _vertScrollBar.
Width
;
10307
rightToLeftInternal ? _layout.Data.X - _vertScrollBar.
Width
: _layout.Data.Right,
10309
_vertScrollBar.
Width
,
10365
rightToLeftInternal ? _layout.Data.X - _vertScrollBar.
Width
: _layout.Data.Right,
10367
_vertScrollBar.
Width
,
18805
pt.X +=
Width
;
19845
_editingPanel.Location = new Point(
Width
+ 1, 0);
29961
client = new Point(
Width
/ 2, Height / 2);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (16)
404
if (!Application.RenderWithVisualStyles ||
Width
< 10 || Height < 10)
434
new Rectangle(0, 0,
Width
, Height),
445
new Rectangle(0, 0,
Width
, Height),
541
int textRight = Math.Min(textLeft + textSize.Width,
Width
- 6);
552
0, Height - 1,
Width
, Height - 1, // Bottom
554
textRight, boxTop,
Width
- 1, boxTop, // Top-right
555
Width
- 1, boxTop,
Width
- 1, Height - 1 // Right
576
0, Height - 1,
Width
, Height - 1, // Bottom
578
textRight, boxTop,
Width
- 1, boxTop, // Top-right
579
Width
- 1, boxTop - 1,
Width
- 1, Height - 1 // Right
585
0, Height - 2,
Width
- 1, Height - 2, // Bottom
587
textRight, boxTop - 1,
Width
- 2, boxTop - 1, // Top-right
588
Width
- 2, boxTop - 1,
Width
- 2, Height - 2 // Right
System\Windows\Forms\Controls\Labels\Label.cs (2)
89
_requestedWidth =
Width
;
1435
Rectangle rectInScreen = RectangleToScreen(new Rectangle(0, 0,
Width
, Height));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
84
Rectangle dropDownButtonRect = new(0, 0,
Width
, Height);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
85
_detailsTextBox.Width = _overarchingTableLayoutPanel.
Width
- _detailsTextBox.Margin.Horizontal;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
70
Size = new(
Width
, 1 + value * _lineHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2955
MoveSplitterTo(
Width
/ 2);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (5)
296
int oldWidth =
Width
;
297
Size newSize = new(2 * DropDownHolderBorder + _currentControl.
Width
, 2 * DropDownHolderBorder + _currentControl.Height);
315
Left -= (
Width
- oldWidth);
519
e.Graphics.DrawLine(pen, 0, y,
Width
, y);
600
Size size = new(2 * DropDownHolderBorder + control.
Width
, 2 * DropDownHolderBorder + control.Height);
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
659
dockWidth += ctl.
Width
;
791
size = splitTarget.
Width
+ delta;
794
size = splitTarget.
Width
- delta;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1248
if (
Width
== 0 || Height == 0)
2050
client = new Point(
Width
/ 2, Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1827
position.Offset(control.IsMirrored ?
Width
: -
Width
, 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
82
preferredSize = new Size(ParentInternal.
Width
, GripThickness);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
101
bounds.Width = ParentInternal.
Width
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
648
controlLocation = new Point(
Width
- controlArray[i].Right, controlLocation.Y);
679
screenLocation.Offset(-toolStripToDrag.
Width
, 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
438
int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.Width : toolStripToDrag.
Width
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (8)
933
g.FillRectangle(brush, toolStrip.
Width
- 1, toolStrip.Height - 2, 1, 1);
934
g.FillRectangle(brush, toolStrip.
Width
- 2, toolStrip.Height - 1, 1, 1);
939
g.FillRectangle(brush, toolStrip.
Width
- 2, 0, 1, 1);
940
g.FillRectangle(brush, toolStrip.
Width
- 1, 1, 1, 1);
1026
e.Graphics.DrawLine(p, 0, 0, e.ToolStrip.
Width
, 0);
1149
b.TranslateTransform(parent.
Width
- control.Location.X, parent.Height - control.Location.Y);
1478
bounds.Width = dropDownMenu.
Width
- bounds.X;
1485
bounds.Width = dropDownMenu.
Width
- bounds.X - dropDownMenu.Padding.Right;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
127
preferredSize.Width = (ParentInternal is not null) ? ParentInternal.
Width
- 2 : preferredSize.Width; // Two for border
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
268
return new Size(parent.
Width
- (parent.Padding.Horizontal - dropDownMenu.ImageMargin.Width), SeparatorThickness);
314
rect.Width = dropDownMenu.
Width
- 4;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
143
insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Top, _owner.
Width
- (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
146
insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Bottom, _owner.
Width
- (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
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\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (5)
117
using RegionScope hTotalRegion = new(0, 0,
Width
, Height);
258
g.FillRectangle(brush, 0, 0,
Width
, clientRect.Top); // top border
260
g.FillRectangle(brush, 0, clientRect.Bottom,
Width
, Height - clientRect.Height); // bottom border
261
g.FillRectangle(brush, clientRect.Right, 0,
Width
- clientRect.Right, Height); // right border
265
g.DrawRectangle(pen, 0, 0,
Width
- 1, Height - 1);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1932
int oldSize =
Width
;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
525
width = SizeFromClientSizeInternal(new(width, height)).Width + _upDownButtons.
Width
;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
829
int width = SizeFromClientSizeInternal(new(textWidth, height)).Width + _upDownButtons.
Width
;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1356
client = new Point(
Width
/ 2, Height / 2);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.WebBrowserBaseNativeWindow.cs (1)
47
wp->cx = _webBrowserBase.
Width
;
System\Windows\Forms\Form.cs (3)
3914
p.X = Math.Max(screenRect.X, screenRect.X + (screenRect.Width -
Width
) / 2);
4355
Point pointToSnap = new(button.Left + button.
Width
/ 2, button.Top + button.Height / 2);
5225
if (WindowState == FormWindowState.Normal && (Height != height ||
Width
!= width))
System\Windows\Forms\Layout\CommonProperties.cs (1)
270
/// <see cref="Control.
Width
"/>, <see cref="Control.Height"/>, <see cref="Control.Bounds"/>, property. (Its the
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1385
float xScaleFactor = (float)suggestedRectangle.Width /
Width
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (38)
360
_panelSize =
Width
- SplitterDistanceInternal - SplitterWidthInternal;
393
return (
Width
>= Panel1MinSize + SplitterWidthInternal + Panel2MinSize);
657
if (value + SplitterWidthInternal >
Width
- Panel2MinSize)
659
value =
Width
- Panel2MinSize - SplitterWidthInternal;
701
_panelSize =
Width
- SplitterDistance - SplitterWidthInternal;
964
_splitterDistance = (_splitterDistance + SplitterWidth >
Width
- Panel2MinSize - _borderSize) ? _splitterDistance - SplitterIncrement : _splitterDistance;
1092
x = Math.Max(Math.Min(x,
Width
- Panel2MinSize), Panel1MinSize);
1259
if (DesignMode &&
Width
!= DefaultSize.Width && value + Panel2MinSize + SplitterWidth >
Width
)
1288
if (DesignMode &&
Width
!= DefaultSize.Width && value + Panel1MinSize + SplitterWidth >
Width
)
1317
if (DesignMode && value + Panel1MinSize + Panel2MinSize >
Width
)
1392
r.X =
Width
- splitSize - SplitterWidthInternal;
1398
r.Width =
Width
;
1523
return Math.Max(Math.Min(size,
Width
- Panel2MinSize), Panel1MinSize);
1571
_splitterRect.X = ((RightToLeft == RightToLeft.Yes) ?
Width
- _splitterDistance - SplitterWidthInternal : Location.X + _splitterDistance);
1580
_splitterRect.Width =
Width
;
1598
if (
Width
== 0)
1620
Panel2.Size = new Size(Math.Max(
Width
- _panelSize - SplitterWidthInternal, Panel2MinSize), Height);
1626
_splitterDistance = Math.Max(
Width
- _panelSize - SplitterWidthInternal, Panel1MinSize);
1635
_splitterDistance = Math.Max((int)(Math.Floor(
Width
/ _ratioWidth)), Panel1MinSize);
1640
Panel2.Size = new Size(Math.Max(
Width
- _splitterDistance - SplitterWidthInternal, Panel2MinSize), Height);
1649
Panel1.Location = new Point(
Width
- Panel1.WidthInternal, 0);
1677
Panel1.Size = new Size(
Width
, _panelSize);
1679
Panel2.Size = new Size(
Width
, Math.Max(Height - panel2Start, Panel2MinSize));
1685
Panel2.Size = new Size(
Width
, _panelSize);
1688
Panel1.WidthInternal =
Width
;
1702
Panel1.WidthInternal =
Width
;
1704
Panel2.Size = new Size(
Width
, Math.Max(Height - panel2Start, Panel2MinSize));
2115
if (size + SplitterWidthInternal <=
Width
- Panel2MinSize - _borderSize)
2178
Panel2.Size = new Size(
Width
- _splitterDistance - SplitterWidthInternal, Height);
2187
Panel1.Location = new Point(
Width
- _splitterDistance, 0);
2195
_ratioWidth = (
Width
/ (double)(Panel1.Width) > 0) ?
Width
/ (double)(Panel1.Width) : _ratioWidth;
2214
_ratioWidth = (
Width
/ (double)(_splitterDistance) > 0) ?
Width
/ (double)(_splitterDistance) : _ratioWidth;
2224
Panel1.WidthInternal =
Width
;
2228
Panel2.Size = new Size(
Width
, Height - panel2Start);
System\Windows\Forms\Panels\SplitterPanel.cs (2)
276
get => Collapsed ? 0 : base.
Width
;
282
get => base.
Width
;
System\Windows\Forms\Printing\PrintPreviewControl.cs (9)
450
rect.Width -= _vScrollBar.
Width
;
454
rect.X += _vScrollBar.
Width
;
462
private Rectangle FocusRectangle => new(0, 0,
Width
- 1, Height - 1);
464
private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.
Width
, _hScrollBar.Height);
802
_hScrollBar.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.
Width
: 0);
808
offset: (verticalScrollNeeded ? _vScrollBar.
Width
: 0));
827
_vScrollBar.Left = availableRect.Right - _vScrollBar.
Width
;
854
bool horizontal = _virtualSize.Width > displaySize.Width && displaySize.Width > _vScrollBar.
Width
;
859
horizontal = _virtualSize.Width > (displaySize.Width - _vScrollBar.
Width
);
System.Windows.Forms.Design (57)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
196
Rectangle bounds = new(0, 0,
Width
, Height);
System\ComponentModel\Design\DesignerActionPanel.cs (2)
488
e.Graphics.DrawRectangle(borderPen, new Rectangle(0, 0,
Width
- 1, Height - 1));
506
int lineWidth =
Width
;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
338
hostedControl.Width = Math.Max(hostedControl.
Width
, EditRegionSize.Width - 2);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (5)
70
ButtonRenderer.DrawButton(g, new Rectangle(-1, -1,
Width
+ 2, Height + 2), "…", Font, Focused, buttonState);
93
ComboBoxRenderer.DrawDropDownButton(g, new Rectangle(0, 0,
Width
, Height), state);
116
new Rectangle(-1, -1,
Width
+ 2, Height + 2),
138
(
Width
- imageWidth + 1) / 2,
155
ControlPaint.DrawFocusRectangle(g, new Rectangle(2, 2,
Width
- 5, Height - 5));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
36
int width = Math.Max(_hostedControl.
Width
, SystemInformation.MinimumWindowSize.Width);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
276
pt.X -= c.
Width
;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
137
topRight.X += relatedControl.
Width
;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
548
_dragOffset.Offset(-rootControl.
Width
, 0);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
455
initialDropPoint.Offset(-((Control)(_dragComponents[_primaryComponentIndex].dragComponent)).
Width
, 0);
828
dropPoint.Offset(-c.
Width
, 0);
890
_parentLocation.Offset(-parentControl.
Width
, 0);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
562
(targetControl.
Width
== minWidth))
930
if (propWidth is not null && _resizeComponents[i].resizeControl.
Width
!= _resizeComponents[i].resizeBounds.Width)
932
propWidth.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.
Width
);
System\Windows\Forms\Design\ControlCommandSet.cs (4)
480
lines.Add(new SnapLine(SnapLineType.Right, pt.X + primaryControl.
Width
- 1));
481
lines.Add(new SnapLine(SnapLineType.Vertical, pt.X + primaryControl.
Width
+ primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always));
718
primaryControl.
Width
+ moveOffsetX, primaryControl.Height + moveOffsetY);
725
moveOffsetX = newRect.Width - primaryControl.
Width
;
System\Windows\Forms\Design\ControlDesigner.cs (2)
298
offset.Offset(Control.
Width
, 0);
348
int width = Control.
Width
;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (3)
307
_sampleDataGridView.Columns[0].Width = _sampleDataGridView.
Width
;
310
_sampleDataGridViewSelected.Columns[0].Width = _sampleDataGridViewSelected.
Width
;
333
dataGridView.Columns[0].Width = dataGridView.
Width
;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
907
Rectangle bounds = new(0, selectedIndex * _selectedColumns.ItemHeight, _selectedColumns.
Width
, _selectedColumns.ItemHeight);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
116
Width = Math.Max(
Width
, PreferredWidth + (SystemInformation.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
579
Width = Math.Max(
Width
, _treeViewCtrl is null ? 0 : _treeViewCtrl.PreferredWidth + (SystemInformation.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\DesignerUtils.cs (2)
390
Math.Max(control.
Width
, s_minimumControlBitmapSize),
423
Math.Max(control.
Width
, s_minimumControlBitmapSize),
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
806
controlOffset.X += Control.
Width
;
System\Windows\Forms\Design\FormatControl.cs (6)
351
thirdRowLabel.MaximumSize = new Drawing.Size(tableLayoutPanel1.
Width
, 0);
360
tableLayoutPanel1.MinimumSize = new Drawing.Size(tableLayoutPanel1.
Width
, tableLayoutPanel1.Height);
373
minWidth = nullValueLabel.
Width
;
377
minWidth = Math.Max(minWidth, secondRowLabel.
Width
);
381
minWidth = Math.Max(minWidth, secondRowLabel.
Width
);
409
explanationLabel.Size = new Drawing.Size(formatGroupBox.
Width
- 10, 30);
System\Windows\Forms\Design\FormatStringDialog.cs (1)
99
int result = ctl.
Width
;
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
73
_maskDescriptionHeader.Width = _listViewCannedMasks.
Width
/ 3;
78
_dataFormatHeader.Width = _listViewCannedMasks.
Width
/ 3;
83
_validatingTypeHeader.Width = (_listViewCannedMasks.
Width
/ 3) - SystemInformation.VerticalScrollBarWidth - 4; // so no h-scrollbar.
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
420
if (newChild.Left == 0 && newChild.Top == 0 && newChild.
Width
>= Control.
Width
&& newChild.Height >= Control.Height)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
730
int width = _tn.EditorToolStrip.
Width
;
823
_editorNode.Width = _tn.EditorToolStrip.
Width
;
2260
_editorNode.Width = _tn.EditorToolStrip.
Width
;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
1232
ToolStripItem.Width = _editorNode.EditorToolStrip.
Width
+ 2;
1259
boundsInAdornerWindow.X += (ToolStripItem.Width - _editorNode.EditorToolStrip.
Width
) / 2;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
376
int width = _typeHereTemplateNode.EditorToolStrip.
Width
;
754
int width = _commitedTemplateNode.EditorToolStrip.
Width
;
1181
if (_toolStripAdornerWindowService is not null && (dropDown.
Width
< _dropDownSizeToInvalidate.Width || dropDown.Size.Height < _dropDownSizeToInvalidate.Height))
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
557
nameof(ToolStripPanel.
Width
),
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1683
return new Size(
Width
, s_toolStripTempateHeight);
1687
return new Size(
Width
, s_templateHeight);
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ByteViewerTests.cs (7)
35
Assert.Equal(new Rectangle(0, 0, control.
Width
, control.Height), control.Bounds);
43
Assert.Equal(new Rectangle(0, 0, control.
Width
, control.Height), control.ClientRectangle);
44
Assert.Equal(new Size(control.
Width
, control.Height), control.ClientSize);
65
Assert.Equal(new Rectangle(0, 0, control.
Width
, control.Height), control.DisplayRectangle);
116
Assert.Equal(new Size(control.
Width
, control.Height), control.Size);
127
Assert.True(control.
Width
> 0);
145
Assert.Equal(control.
Width
, createParams.Width);
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
90
int result = ctl.
Width
;
System.Windows.Forms.Tests (267)
System\Windows\Forms\AxHostTests.cs (2)
114
Assert.Equal(75, control.
Width
);
208
Assert.Equal(75, control.
Width
);
System\Windows\Forms\ButtonBaseTests.cs (1)
120
Assert.Equal(75, control.
Width
);
System\Windows\Forms\ButtonRenderingTests.cs (1)
242
new Rectangle(0, 0, button.
Width
- 1, button.Height - 1),
System\Windows\Forms\ButtonTests.cs (1)
118
Assert.Equal(75, control.
Width
);
System\Windows\Forms\CheckBoxTests.cs (1)
121
Assert.Equal(104, control.
Width
);
System\Windows\Forms\ComboBoxTests.cs (1)
130
Assert.Equal(121, control.
Width
);
System\Windows\Forms\ContainerControlTests.cs (1)
121
Assert.Equal(0, control.
Width
);
System\Windows\Forms\ControlTests.cs (5)
96
Assert.Equal(0, control.
Width
);
185
Assert.Equal(0, control.
Width
);
281
Assert.Equal(width, control.
Width
);
377
Assert.Equal(0, control.
Width
);
473
Assert.Equal(width, control.
Width
);
System\Windows\Forms\ControlTests.Methods.cs (74)
7424
Assert.Equal(width, control.
Width
);
7443
Assert.Equal(width, control.
Width
);
7535
Assert.Equal(expectedWidth, control.
Width
);
7554
Assert.Equal(expectedWidth, control.
Width
);
7633
Assert.Equal(width, control.
Width
);
7652
Assert.Equal(width, control.
Width
);
7751
Assert.Equal(width, control.
Width
);
7771
Assert.Equal(width, control.
Width
);
7874
Assert.Equal(expectedWidth, control.
Width
);
7896
Assert.Equal(expectedWidth, control.
Width
);
8022
Assert.Equal(expectedWidth, control.
Width
);
8049
Assert.Equal(expectedWidth, control.
Width
);
8211
Assert.Equal(expectedWidth, control.
Width
);
8230
Assert.Equal(expectedWidth, control.
Width
);
8322
Assert.Equal(expectedWidth, control.
Width
);
8341
Assert.Equal(expectedWidth, control.
Width
);
8420
Assert.Equal(expectedWidth, control.
Width
);
8439
Assert.Equal(expectedWidth, control.
Width
);
8608
Assert.Equal(expectedWidth, control.
Width
);
8628
Assert.Equal(expectedWidth, control.
Width
);
8731
Assert.Equal(expectedWidth, control.
Width
);
8753
Assert.Equal(expectedWidth, control.
Width
);
8879
Assert.Equal(expectedWidth, control.
Width
);
8906
Assert.Equal(expectedWidth, control.
Width
);
9025
Assert.Equal(width, control.
Width
);
9046
Assert.Equal(width, control.
Width
);
9167
Assert.Equal(expectedWidth, control.
Width
);
9188
Assert.Equal(expectedWidth, control.
Width
);
9296
Assert.Equal(width, control.
Width
);
9317
Assert.Equal(width, control.
Width
);
9433
Assert.Equal(width, control.
Width
);
9455
Assert.Equal(width, control.
Width
);
9588
Assert.Equal(expectedWidth, control.
Width
);
9612
Assert.Equal(expectedWidth, control.
Width
);
9746
Assert.Equal(expectedWidth, control.
Width
);
9775
Assert.Equal(expectedWidth, control.
Width
);
9857
Assert.Equal(expectedSize.Width, control.
Width
);
9873
Assert.Equal(expectedSize.Width, control.
Width
);
9905
Assert.Equal(expectedSize.Width, control.
Width
);
9924
Assert.Equal(expectedSize.Width, control.
Width
);
10380
Assert.Equal(0, control.
Width
);
10399
Assert.Equal(0, control.
Width
);
10447
Assert.True(control.
Width
> 0);
10480
Assert.True(control.
Width
> 0);
10554
Assert.Equal(0, control.
Width
);
10573
Assert.Equal(0, control.
Width
);
10646
Assert.Equal(0, control.
Width
);
10665
Assert.Equal(0, control.
Width
);
10737
Assert.Equal(0, control.
Width
);
10759
Assert.Equal(0, control.
Width
);
10804
Assert.Equal(3, control.
Width
);
10826
Assert.Equal(3, control.
Width
);
10882
Assert.Equal(3, control.
Width
);
10908
Assert.Equal(3, control.
Width
);
10994
Assert.Equal(width, control.
Width
);
11013
Assert.Equal(width, control.
Width
);
11105
Assert.Equal(width, control.
Width
);
11124
Assert.Equal(width, control.
Width
);
11203
Assert.Equal(width, control.
Width
);
11222
Assert.Equal(width, control.
Width
);
11312
Assert.Equal(width, control.
Width
);
11332
Assert.Equal(width, control.
Width
);
11435
Assert.Equal(width, control.
Width
);
11457
Assert.Equal(width, control.
Width
);
11564
Assert.Equal(width, control.
Width
);
11591
Assert.Equal(width, control.
Width
);
11689
Assert.Equal(width, control.
Width
);
11708
Assert.Equal(width, control.
Width
);
11798
Assert.Equal(width, control.
Width
);
11818
Assert.Equal(width, control.
Width
);
11933
Assert.Equal(width, control.
Width
);
11955
Assert.Equal(width, control.
Width
);
12062
Assert.Equal(width, control.
Width
);
12089
Assert.Equal(width, control.
Width
);
System\Windows\Forms\ControlTests.Properties.cs (76)
2486
Assert.Equal(width, control.
Width
);
2505
Assert.Equal(width, control.
Width
);
2575
Assert.Equal(expectedWidth, control.
Width
);
2594
Assert.Equal(expectedWidth, control.
Width
);
2660
Assert.Equal(width, control.
Width
);
2679
Assert.Equal(width, control.
Width
);
2765
Assert.Equal(width, control.
Width
);
2785
Assert.Equal(width, control.
Width
);
2865
Assert.Equal(expectedWidth, control.
Width
);
2887
Assert.Equal(expectedWidth, control.
Width
);
2990
Assert.Equal(expectedWidth, control.
Width
);
3017
Assert.Equal(expectedWidth, control.
Width
);
3389
Assert.Equal(expectedSize.Width, control.
Width
);
3405
Assert.Equal(expectedSize.Width, control.
Width
);
3452
Assert.Equal(expectedSize.Width, control.
Width
);
3471
Assert.Equal(expectedSize.Width, control.
Width
);
5736
Assert.Equal(0, control.
Width
);
5755
Assert.Equal(0, control.
Width
);
5846
Assert.Equal(expectedWidth, control.
Width
);
5865
Assert.Equal(expectedWidth, control.
Width
);
5934
Assert.Equal(0, control.
Width
);
5953
Assert.Equal(0, control.
Width
);
6042
Assert.Equal(0, control.
Width
);
6062
Assert.Equal(0, control.
Width
);
6154
Assert.Equal(0, control.
Width
);
6176
Assert.Equal(0, control.
Width
);
6291
Assert.Equal(0, control.
Width
);
6318
Assert.Equal(0, control.
Width
);
6700
Assert.Equal(0, control.
Width
);
6722
Assert.Equal(0, control.
Width
);
6791
Assert.Equal(0, control.
Width
);
6813
Assert.Equal(0, control.
Width
);
6890
Assert.Equal(0, control.
Width
);
6915
Assert.Equal(0, control.
Width
);
7000
Assert.Equal(0, control.
Width
);
7029
Assert.Equal(0, control.
Width
);
7181
Assert.Equal(0, control.
Width
);
7203
Assert.Equal(0, control.
Width
);
7271
Assert.Equal(0, control.
Width
);
7294
Assert.Equal(0, control.
Width
);
7373
Assert.Equal(0, control.
Width
);
7398
Assert.Equal(0, control.
Width
);
7484
Assert.Equal(0, control.
Width
);
7514
Assert.Equal(0, control.
Width
);
11120
Assert.Equal(value.Width, control.
Width
);
11139
Assert.Equal(value.Width, control.
Width
);
11231
Assert.Equal(expectedWidth, control.
Width
);
11250
Assert.Equal(expectedWidth, control.
Width
);
11326
Assert.Equal(value.Width, control.
Width
);
11345
Assert.Equal(value.Width, control.
Width
);
11441
Assert.Equal(value.Width, control.
Width
);
11461
Assert.Equal(value.Width, control.
Width
);
11558
Assert.Equal(expectedWidth, control.
Width
);
11580
Assert.Equal(expectedWidth, control.
Width
);
11700
Assert.Equal(expectedWidth, control.
Width
);
11727
Assert.Equal(expectedWidth, control.
Width
);
12135
Assert.Equal(0, control.
Width
);
12156
Assert.Equal(0, control.
Width
);
12225
Assert.Equal(0, control.
Width
);
12247
Assert.Equal(0, control.
Width
);
12323
Assert.Equal(0, control.
Width
);
12347
Assert.Equal(0, control.
Width
);
12432
Assert.Equal(0, control.
Width
);
12461
Assert.Equal(0, control.
Width
);
13155
Assert.Equal(value, control.
Width
);
13174
Assert.Equal(value, control.
Width
);
13265
Assert.Equal(expectedWidth, control.
Width
);
13284
Assert.Equal(expectedWidth, control.
Width
);
13353
Assert.Equal(value, control.
Width
);
13372
Assert.Equal(value, control.
Width
);
13461
Assert.Equal(value, control.
Width
);
13481
Assert.Equal(value, control.
Width
);
13573
Assert.Equal(expectedWidth, control.
Width
);
13595
Assert.Equal(expectedWidth, control.
Width
);
13710
Assert.Equal(expectedWidth, control.
Width
);
13737
Assert.Equal(expectedWidth, control.
Width
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
127
Assert.Equal(100, control.
Width
);
System\Windows\Forms\DateTimePickerTests.cs (1)
121
Assert.Equal(200, control.
Width
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (7)
48
Assert.Equal(new Rectangle(0, 0, control.
Width
, control.Height), control.Bounds);
76
Assert.Equal(new Rectangle(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y, control.
Width
, control.Height), control.DesktopBounds);
136
Assert.Equal(new Rectangle(-1, -1, control.
Width
, control.Height), control.RestoreBounds);
137
Assert.Equal(control.
Width
, control.Right);
146
Assert.Equal(new Size(control.
Width
, control.Height), control.Size);
162
Assert.True(control.
Width
> 0);
182
Assert.Equal(control.
Width
, createParams.Width);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
124
Assert.Equal(200, control.
Width
);
System\Windows\Forms\DomainUpDownTests.cs (1)
150
_sub.
Width
.Should().Be(120);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
115
Assert.Equal(200, control.
Width
);
System\Windows\Forms\FormTests.cs (1)
164
Assert.Equal(300, control.
Width
);
System\Windows\Forms\GroupBoxTests.cs (1)
101
Assert.Equal(200, control.
Width
);
System\Windows\Forms\HScrollBarTests.cs (1)
115
Assert.True(control.
Width
> 0);
System\Windows\Forms\LabelTests.cs (1)
112
Assert.Equal(100, control.
Width
);
System\Windows\Forms\ListBoxTests.cs (1)
133
Assert.Equal(120, control.
Width
);
System\Windows\Forms\ListControlTests.cs (1)
109
Assert.Equal(0, control.
Width
);
System\Windows\Forms\ListViewTests.cs (1)
151
Assert.Equal(121, control.
Width
);
System\Windows\Forms\MdiClientTests.cs (11)
85
Assert.Equal(0, control.
Width
);
545
Assert.Equal(value.Width, control.
Width
);
564
Assert.Equal(value.Width, control.
Width
);
647
Assert.Equal(expectedWidth, control.
Width
);
669
Assert.Equal(expectedWidth, control.
Width
);
781
Assert.Equal(0, control.
Width
);
808
Assert.Equal(0, control.
Width
);
933
Assert.Equal(0, control.
Width
);
960
Assert.Equal(0, control.
Width
);
1095
Assert.Equal(expectedWidth, control.
Width
);
1122
Assert.Equal(expectedWidth, control.
Width
);
System\Windows\Forms\MenuStripTests.cs (1)
147
Assert.Equal(200, control.
Width
);
System\Windows\Forms\MonthCalendarTests.cs (2)
140
Assert.True(control.
Width
> 0);
158
Assert.Equal(control.
Width
, createParams.Width);
System\Windows\Forms\PanelTests.cs (1)
114
Assert.Equal(200, control.
Width
);
System\Windows\Forms\PictureBoxTests.cs (1)
109
Assert.Equal(100, control.
Width
);
System\Windows\Forms\ProgressBarTests.cs (1)
101
Assert.Equal(100, control.
Width
);
System\Windows\Forms\PropertyGridTests.cs (1)
166
Assert.Equal(130, control.
Width
);
System\Windows\Forms\RadioButtonTests.cs (1)
118
Assert.Equal(104, control.
Width
);
System\Windows\Forms\RichTextBoxTests.cs (1)
133
Assert.Equal(100, control.
Width
);
System\Windows\Forms\ScrollableControlTests.cs (1)
114
Assert.Equal(0, control.
Width
);
System\Windows\Forms\ScrollBarTests.cs (1)
103
Assert.Equal(0, control.
Width
);
System\Windows\Forms\SplitterTests.cs (11)
101
Assert.Equal(3, control.
Width
);
406
Assert.Equal(3, control.
Width
);
415
Assert.Equal(3, control.
Width
);
439
Assert.Equal(50, control.
Width
);
448
Assert.Equal(50, control.
Width
);
471
Assert.Equal(3, control.
Width
);
480
Assert.Equal(3, control.
Width
);
505
Assert.Equal(expectedWidth, control.
Width
);
514
Assert.Equal(expectedWidth, control.
Width
);
663
Assert.Equal(3, control.
Width
);
675
Assert.Equal(3, control.
Width
);
System\Windows\Forms\StatusStripTests.cs (1)
150
Assert.Equal(200, control.
Width
);
System\Windows\Forms\TabControlTests.cs (1)
112
Assert.Equal(200, control.
Width
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
125
Assert.Equal(200, control.
Width
);
System\Windows\Forms\TabPageTests.cs (18)
121
Assert.Equal(200, control.
Width
);
230
Assert.Equal(200, control.
Width
);
1907
Assert.Equal(200, control.
Width
);
1929
Assert.Equal(200, control.
Width
);
1997
Assert.Equal(200, control.
Width
);
2020
Assert.Equal(200, control.
Width
);
2098
Assert.Equal(200, control.
Width
);
2123
Assert.Equal(200, control.
Width
);
2222
Assert.Equal(expected.Width, control.
Width
);
2252
Assert.Equal(expected.Width, control.
Width
);
4353
Assert.Equal(width, control.
Width
);
4374
Assert.Equal(width, control.
Width
);
4490
Assert.Equal(width, control.
Width
);
4512
Assert.Equal(width, control.
Width
);
4645
Assert.Equal(expectedWidth, control.
Width
);
4669
Assert.Equal(expectedWidth, control.
Width
);
4824
Assert.Equal(expected.Width, control.
Width
);
4854
Assert.Equal(expected.Width, control.
Width
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
119
Assert.Equal(200, control.
Width
);
948
Assert.Equal(200, control.
Width
);
970
Assert.Equal(200, control.
Width
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
120
Assert.Equal(c.
Width
, item.Width);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
157
Assert.Equal(2, control.
Width
);
1974
Assert.Equal(100, control.
Width
);
1996
Assert.Equal(100, control.
Width
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
118
Assert.Equal(0, control.
Width
);
System\Windows\Forms\ToolStripTests.cs (2)
163
Assert.Equal(100, control.
Width
);
318
Assert.Equal(100, control.
Width
);
System\Windows\Forms\TreeViewTests.cs (1)
128
Assert.Equal(121, control.
Width
);
System\Windows\Forms\UpDownBaseTests.cs (3)
133
Assert.Equal(120, control.
Width
);
2771
Assert.Equal(width, control.
Width
);
2803
Assert.Equal(width, control.
Width
);
System\Windows\Forms\UserControlTests.cs (1)
121
Assert.Equal(150, control.
Width
);
System\Windows\Forms\VScrollBarTests.cs (1)
114
Assert.True(control.
Width
> 0);
System\Windows\Forms\WebBrowserTests.cs (1)
97
Assert.Equal(250, control.
Width
);
TextBoxBaseTests.cs (6)
6544
Assert.Equal(width, control.
Width
);
6565
Assert.Equal(width, control.
Width
);
6678
Assert.Equal(width, control.
Width
);
6699
Assert.Equal(width, control.
Width
);
6794
Assert.Equal(width, control.
Width
);
6815
Assert.Equal(width, control.
Width
);
TextBoxTests.cs (1)
120
Assert.Equal(100, control.
Width
);
TrackBarTests.cs (3)
108
Assert.Equal(104, control.
Width
);
3004
Assert.Equal(expectedWidth, control.
Width
);
3025
Assert.Equal(expectedWidth, control.
Width
);
WebBrowserBaseTests.cs (4)
83
Assert.Equal(width, control.
Width
);
102
Assert.Equal(width, control.
Width
);
199
Assert.Equal(expectedWidth, control.
Width
);
221
Assert.Equal(expectedWidth, control.
Width
);
System.Windows.Forms.UI.IntegrationTests (9)
Dpi\DpiMessageHelper.cs (1)
25
(int)Math.Round(control.
Width
* factor),
DragDropTests.cs (1)
167
WaitForExplorer(DragDrop, new Point(dragDropForm.Location.X + dragDropForm.
Width
, dragDropForm.Location.Y));
FormTests.cs (6)
65
int borderSize = (form.
Width
- form.ClientRectangle.Width) / 2;
76
Assert.True(form.
Width
>= screenWorkingArea.Width / 2);
77
Assert.True(form.
Width
<= (screenWorkingArea.Width / 2) + (borderSize * 2));
126
int borderSize = (form.
Width
- form.ClientRectangle.Width) / 2;
137
Assert.True(form.
Width
>= screenWorkingArea.Width / 2);
138
Assert.True(form.
Width
<= (screenWorkingArea.Width / 2) + (borderSize * 2));
ListBoxItemAccessibleObjestTests.cs (1)
30
boundsAfterHandleCreation.Width.Should().BeLessOrEqualTo(listBox.
Width
);
WindowsFormsIntegration (6)
System\Windows\Integration\ElementHost.cs (1)
635
SafeNativeMethods.SetWindowPos(_hwndSource.Handle, NativeMethods.HWND_TOP, 0, 0, this.
Width
, this.Height, 0);
System\Windows\Integration\HostUtils.cs (5)
300
int width = control.
Width
<= 0 ? 1 : control.
Width
;
301
int height = control.
Width
<= 0 ? 1 : control.Height;
337
drawingContext.DrawRectangle(brush, null, new Rect(0, 0, adapter.
Width
, adapter.Height));
340
RenderTargetBitmap bmp = GetRenderTargetBitmapForVisual(adapter.
Width
, adapter.Height, drawingVisual);
WinFormsControlsTest (2)
MainForm.cs (1)
272
if (button.
Width
> biggestButton.Width)
TrackBars.cs (1)
27
lblTrackBarSize.Text = $"Trackbar width: {trackBar1.
Width
}";