23 writes to Width
PresentationUI (2)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
162
_addButton.
Width
= maxWidth;
163
_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)
10166
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)
3763
DropDownListBox.
Width
= Math.Max(maxWidth, GetRectangle(row, RowValue).Width);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
264
Width
= requestedSize;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
380
Width
= _requestedDim;
708
Width
= _autoSize ? PreferredDimension : saveDim;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
480
_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);
335
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,
575
Width
= Math.Max(Width, _treeViewCtrl is null ? 0 : _treeViewCtrl.PreferredWidth + (SystemInformation.VerticalScrollBarWidth * 2));
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
468
controls[i].
Width
= size.Width;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1474
_miniToolStrip.
Width
= _centerLabel.Width + 2;
214 references to Width
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
93
Dim labelSizeNeeded As SizeF = labelGraphics.MeasureString(prompt, Label.Font, Label.
Width
)
PresentationUI (3)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
161
int maxWidth = Math.Max(_addButton.
Width
, _removeButton.
Width
);
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
118
get { return _listBoxSummary.
Width
- IconWidth; }
System.Windows.Forms (147)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
251
get => Pixel2Twip(GetControl()?.
Width
?? 0, xDirection: true);
System\Windows\Forms\ActiveX\AxHost.cs (1)
1556
SetExtent(
Width
, Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
465
PInvoke.SetWindowExtEx(hdcDraw, _control.
Width
, _control.Height, (SIZE*)&sWindowExt);
2009
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)
5003
int width = Math.Min(
Width
, targetBounds.Width);
8304
Rectangle shift = new(-Left, -Top, parent.
Width
, parent.Height);
8806
viewportOrg.X +
Width
,
10142
/// <param name="width">The new <see cref="
Width
" /> property value of the control.</param>
10902
bool newSize =
Width
!= width || Height != height || _clientWidth != clientWidth || _clientHeight != clientHeight;
11221
client = new Point(
Width
/ 2, Height / 2);
12012
if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOSIZE) == 0 && (wp->cx !=
Width
|| wp->cy != Height))
12745
if (sizeProperty is not null && !sizeProperty.IsReadOnly && (bounds.Width !=
Width
|| bounds.Height != Height))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
385
Control.
Width
- (2 * ButtonBorderSize),
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
436
get => Properties.TryGetValue(s_propDropDownWidth, out int dropDownWidth) ? dropDownWidth :
Width
;
3849
if (
Width
== 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
466
_vertScrollBar.Left = ClientRectangle.Width - _vertScrollBar.
Width
;
2137
rectDisplay.Width -= _vertScrollBar.
Width
;
2140
rectDisplay.X = _vertScrollBar.
Width
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
8985
minimumWidth += _vertScrollBar.
Width
;
10302
rightToLeftInternal ? _layout.Data.X - _vertScrollBar.
Width
: _layout.Data.Right,
10304
_vertScrollBar.
Width
,
10360
rightToLeftInternal ? _layout.Data.X - _vertScrollBar.
Width
: _layout.Data.Right,
10362
_vertScrollBar.
Width
,
18815
pt.X +=
Width
;
19853
_editingPanel.Location = new Point(
Width
+ 1, 0);
29966
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),
540
int textRight = Math.Min(textLeft + textSize.Width,
Width
- 6);
551
0, Height - 1,
Width
, Height - 1, // Bottom
553
textRight, boxTop,
Width
- 1, boxTop, // Top-right
554
Width
- 1, boxTop,
Width
- 1, Height - 1 // Right
575
0, Height - 1,
Width
, Height - 1, // Bottom
577
textRight, boxTop,
Width
- 1, boxTop, // Top-right
578
Width
- 1, boxTop - 1,
Width
- 1, Height - 1 // Right
584
0, Height - 2,
Width
- 1, Height - 2, // Bottom
586
textRight, boxTop - 1,
Width
- 2, boxTop - 1, // Top-right
587
Width
- 2, boxTop - 1,
Width
- 2, Height - 2 // Right
System\Windows\Forms\Controls\Labels\Label.cs (2)
85
_requestedWidth =
Width
;
1433
Rectangle rectInScreen = RectangleToScreen(new Rectangle(0, 0,
Width
, Height));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2576
int sw = (int)Math.Round((Left +
Width
) * dx - sx);
2610
int toolStripWidth =
Width
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (2)
117
new Rectangle(0, 0,
Width
, Height),
133
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)
72
Size = new(
Width
, 1 + value * _lineHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2994
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)
658
dockWidth += ctl.
Width
;
790
size = splitTarget.
Width
+ delta;
793
size = splitTarget.
Width
- delta;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1255
if (
Width
== 0 || Height == 0)
2061
client = new Point(
Width
/ 2, Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1821
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 (1)
671
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)
932
g.FillRectangle(brush, toolStrip.
Width
- 1, toolStrip.Height - 2, 1, 1);
933
g.FillRectangle(brush, toolStrip.
Width
- 2, toolStrip.Height - 1, 1, 1);
938
g.FillRectangle(brush, toolStrip.
Width
- 2, 0, 1, 1);
939
g.FillRectangle(brush, toolStrip.
Width
- 1, 1, 1, 1);
1025
e.Graphics.DrawLine(p, 0, 0, e.ToolStrip.
Width
, 0);
1148
b.TranslateTransform(parent.
Width
- control.Location.X, parent.Height - control.Location.Y);
1477
bounds.Width = dropDownMenu.
Width
- bounds.X;
1484
bounds.Width = dropDownMenu.
Width
- bounds.X - dropDownMenu.Padding.Right;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
132
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)
825
e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, 0, e.ToolStrip.
Width
, 0);
835
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)
1929
int oldSize =
Width
;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
515
width = SizeFromClientSizeInternal(new(width, height)).Width + _upDownButtons.
Width
;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
825
int width = SizeFromClientSizeInternal(new(textWidth, height)).Width + _upDownButtons.
Width
;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1352
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)
3965
p.X = Math.Max(screenRect.X, screenRect.X + (screenRect.Width -
Width
) / 2);
4395
Point pointToSnap = new(button.Left + button.
Width
/ 2, button.Top + button.Height / 2);
5296
if (WindowState == FormWindowState.Normal && (Height != height ||
Width
!= width))
System\Windows\Forms\Layout\CommonProperties.cs (1)
265
/// <see cref="Control.
Width
"/>, <see cref="Control.Height"/>, <see cref="Control.Bounds"/>, property. (Its the
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1378
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)
485
e.Graphics.DrawRectangle(borderPen, new Rectangle(0, 0,
Width
- 1, Height - 1));
503
int lineWidth =
Width
;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
335
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);
822
dropPoint.Offset(-c.
Width
, 0);
884
_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)
477
lines.Add(new SnapLine(SnapLineType.Right, pt.X + primaryControl.
Width
- 1));
478
lines.Add(new SnapLine(SnapLineType.Vertical, pt.X + primaryControl.
Width
+ primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always));
715
primaryControl.
Width
+ moveOffsetX, primaryControl.Height + moveOffsetY);
722
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)
902
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)
575
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)
685
int width = _tn.EditorToolStrip.
Width
;
777
_editorNode.Width = _tn.EditorToolStrip.
Width
;
2275
_editorNode.Width = _tn.EditorToolStrip.
Width
;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
1208
ToolStripItem.Width = _editorNode.EditorToolStrip.
Width
+ 2;
1235
boundsInAdornerWindow.X += (ToolStripItem.Width - _editorNode.EditorToolStrip.
Width
) / 2;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
376
int width = _typeHereTemplateNode.EditorToolStrip.
Width
;
739
int width = _commitedTemplateNode.EditorToolStrip.
Width
;
1151
if (_toolStripAdornerWindowService is not null && (dropDown.
Width
< _dropDownSizeToInvalidate.Width || dropDown.Size.Height < _dropDownSizeToInvalidate.Height))
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
545
nameof(ToolStripPanel.
Width
),
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1635
return new Size(
Width
, s_toolStripTempateHeight);
1639
return new Size(
Width
, s_templateHeight);
WindowsFormsIntegration (6)
System\Windows\Integration\ElementHost.cs (1)
629
SafeNativeMethods.SetWindowPos(_hwndSource.Handle, NativeMethods.HWND_TOP, 0, 0, this.
Width
, this.Height, 0);
System\Windows\Integration\HostUtils.cs (5)
295
int width = control.
Width
<= 0 ? 1 : control.
Width
;
296
int height = control.
Width
<= 0 ? 1 : control.Height;
332
drawingContext.DrawRectangle(brush, null, new Rect(0, 0, adapter.
Width
, adapter.Height));
335
RenderTargetBitmap bmp = GetRenderTargetBitmapForVisual(adapter.
Width
, adapter.Height, drawingVisual);