26 writes to Width
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
101_dialogWindow.Width = 600;
System.Web.Mobile (9)
UI\MobileControls\Design\MobileControlDesigner.cs (1)
577panel.Width = lblDescription.Width;
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (2)
987lblDescription.Width = 204; 989panel.Width = 204;
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
597panel.Width = lblDescription.Width;
UI\MobileControls\Design\StyleSheetDesigner.cs (2)
846_mergedUI.CbStyles.Width = 195; 856_mergedUI.CbStyles.Width = 195;
UI\MobileControls\Design\TemplatingOptionsDialog.cs (1)
604panel.Width = lblDescription.Width;
UI\MobileControls\Design\Util\GenericUI.cs (1)
95header.Width = dialog.ClientSize.Width - 10;
UI\MobileControls\Design\Util\HeaderPanel.cs (1)
79child.Width = Width;
System.Windows.Forms (11)
winforms\Managed\System\WinForms\AxHost.cs (1)
6319GetP().Width = Twip2Pixel(value, true);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
10346int vertScrollBarWidth = this.vertScrollBar.Width = SystemInformation.VerticalScrollBarWidth;
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
122details.Width = overarchingTableLayoutPanel.Width - details.Margin.Horizontal; 325detailsBtn.Width = (int) Math.Ceiling(detailsWidth * (ownerGrid.UseCompatibleTextRendering ? 1.15f : 1.4f));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3908DropDownListBox.Width = Math.Max(maxWidth, GetRectangle(row,ROWVALUE).Width);
winforms\Managed\System\WinForms\Splitter.cs (1)
328Width = requestedSize;
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
427((Panel)this).Width = value;
winforms\Managed\System\WinForms\ToolBar.cs (1)
1024Width = AutoSize ? PreferredWidth : saveSize;
winforms\Managed\System\WinForms\TrackBar.cs (2)
451Width = requestedDim; 813Width = autoSize ? PreferredDimension : saveDim;
winforms\Managed\System\WinForms\UpDownBase.cs (1)
755upDownButtons.Width = defaultButtonsWidth;
System.Workflow.ComponentModel (4)
AuthoringOM\Design\DesignerWidgets.cs (1)
1461Width = SystemInformation.VerticalScrollBarWidth + 2;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
618this.themePanel.Width = this.designerPreview.Right + ((this.designerPreview.Left - this.propertiesGrid.Right) / 2); 623this.themePanel.Width = this.themeConfigPanel.Right + this.themeConfigPanel.Left; 626Width = this.themePanel.Right + this.themePanel.Left + Margin.Left + Margin.Right;
System.WorkflowServices (1)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
504this.Width = this.Parent.Width - 10;
187 references to Width
System.Web.Mobile (4)
UI\MobileControls\Design\MobileControlDesigner.cs (1)
577panel.Width = lblDescription.Width;
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
597panel.Width = lblDescription.Width;
UI\MobileControls\Design\TemplatingOptionsDialog.cs (1)
604panel.Width = lblDescription.Width;
UI\MobileControls\Design\Util\HeaderPanel.cs (1)
79child.Width = Width;
System.Windows.Forms (155)
winforms\Managed\System\WinForms\AxHost.cs (2)
1905SetExtent(Width, Height); 6313return Pixel2Twip(GetP().Width,true);
winforms\Managed\System\WinForms\BoundsSpecified.cs (1)
73/// Both <see cref='System.Windows.Forms.Control.Width'/> and <see cref='System.Windows.Forms.Control.Height'/> property values of the control are
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
562Rectangle bounds = new Rectangle(buttonBorderSize, buttonBorderSize, this.Control.Width - (2 * buttonBorderSize), this.Control.Height - (2 * buttonBorderSize));
winforms\Managed\System\WinForms\ComboBox.cs (5)
537return Width; 3831if (Width == 0) { 6103Rectangle topOwnerDrawArea = new Rectangle(0,0,comboBox.Width, innerBorder.Top); 6104Rectangle bottomOwnerDrawArea = new Rectangle(0,innerBorder.Bottom,comboBox.Width, comboBox.Height-innerBorder.Bottom); 6106Rectangle rightOwnerDrawArea = new Rectangle(innerBorder.Right,0,comboBox.Width - innerBorder.Right,comboBox.Height);
winforms\Managed\System\WinForms\Control.cs (9)
6167int width = Math.Min(this.Width, targetBounds.Width); 9803Rectangle shift = new Rectangle(-this.Left,-this.Top, parent.Width, parent.Height); 10352HandleRef hClippingRegion = new HandleRef(null, SafeNativeMethods.CreateRectRgn(viewportOrg.x,viewportOrg.y, viewportOrg.x + this.Width, viewportOrg.y + this.Height)); 12568bool newSize = this.Width != width || this.Height != height || 12867client = new Point(Width/2, Height/2); 13846if ((wp->flags & NativeMethods.SWP_NOSIZE) == 0 && (wp->cx != Width || wp->cy != Height)) { 14513if (sizeProperty != null && !sizeProperty.IsReadOnly && (bounds.Width != this.Width || bounds.Height != this.Height)) { 16697SafeNativeMethods.SetWindowExtEx(new HandleRef(null, hdcDraw), control.Width, control.Height, sWindowExt); 18642rc.right = rc.left + control.Width;
winforms\Managed\System\WinForms\DataGrid.cs (7)
347vertScrollBar.Left = ClientRectangle.Width - vertScrollBar.Width; 6671inner.X -= vertScrollBar.Width; 6763int vertWidth = vertScrollBar.Width; 6792int vertWidth = vertScrollBar.Width; 6810vertScrollBar.Width, 6846vertScrollBar.Width, 6851layout.Data.X += vertScrollBar.Width;
winforms\Managed\System\WinForms\DataGridView.cs (3)
512this.vertScrollBar.Left = this.ClientRectangle.Width - vertScrollBar.Width; 2699rectDisplay.Width -= this.vertScrollBar.Width; 2702rectDisplay.X = this.vertScrollBar.Width;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
9074minimumWidth += this.vertScrollBar.Width; 10479rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 10481this.vertScrollBar.Width, 10537rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 10539this.vertScrollBar.Width, 19357pt.X += Width; 20393this.editingPanel.Location = new Point(this.Width + 1, 0); 29861client = new Point(this.Width/2, this.Height/2);
winforms\Managed\System\WinForms\DomainUpDown.cs (1)
609width = SizeFromClientSize(width, height).Width + upDownButtons.Width;
winforms\Managed\System\WinForms\Form.cs (5)
4507p.X = Math.Max(screenRect.X,screenRect.X + (screenRect.Width - Width)/2); 4997button.Left + button.Width / 2, 5898&& (this.Height != height || this.Width != width)) { 5997adjustedBounds.Width = Width; 7884UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, owner.Width);
winforms\Managed\System\WinForms\GroupBox.cs (16)
520if (Application.RenderWithVisualStyles && Width >= 10 && Height >= 10) { 537GroupBoxRenderer.DrawGroupBox(e.Graphics, new Rectangle(0, 0, Width, Height), Text, Font, textcolor, textFlags, gbState); 540GroupBoxRenderer.DrawGroupBox(e.Graphics, new Rectangle(0, 0, Width, Height), Text, Font, textFlags, gbState); 622int textRight = Math.Min( textLeft + textSize.Width, Width - 6); 647graphics.DrawLine(boxPen, 0, Height-1, Width, Height-1); 651graphics.DrawLine(boxPen, textRight, boxTop, Width-1, boxTop); 653graphics.DrawLine(boxPen, Width-1, boxTop, Width-1, Height-1); 667graphics.DrawLine(light, 0, Height - 1, Width, Height - 1); 668graphics.DrawLine(dark, 0, Height - 2, Width - 1, Height - 2); 676graphics.DrawLine(dark, textRight, boxTop - 1, Width - 2, boxTop - 1); 677graphics.DrawLine(light, textRight, boxTop, Width - 1, boxTop); 680graphics.DrawLine(light, Width - 1, boxTop - 1, Width - 1, Height - 1); 681graphics.DrawLine(dark, Width - 2, boxTop, Width - 2, Height - 2);
winforms\Managed\System\WinForms\Label.cs (2)
119requestedWidth = Width; 1739Rectangle rectInScreen = this.RectangleToScreen(new Rectangle(0, 0, Width, Height));
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
872int width = SizeFromClientSize(textWidth, height).Width + upDownButtons.Width;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (6)
733int maxPos = Math.Max(Width, virtualSize.Width /*- Width*/); 743position.X = Math.Min(position.X, virtualSize.Width - Width); 773info.nMax = Math.Max(Width, virtualSize.Width) - 1; 774info.nPage = Width; 839maxPos = Math.Max(Width, virtualSize.Width /*- Width*/); 903maxPos = Math.Max(Width, virtualSize.Width /*- Width*/);
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
2965int sw = Width; 2966sw = (int)Math.Round((Left + Width) * dx - sx); 2993int toolStripWidth = this.Width;
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
74Size = new Size(Width, 1 + value * lineHeight);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
97Rectangle dropDownButtonRect = new Rectangle(0, 0, Width, Height);
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
122details.Width = overarchingTableLayoutPanel.Width - details.Margin.Horizontal;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
1659if (this.Width == size.Width && this.Height == size.Height) { 3176MoveSplitterTo(this.Width / 2); 5701int oldWidth = this.Width; 5702Size newSize = new Size(2 * DropDownHolderBorder + currentControl.Width, 2 * DropDownHolderBorder + currentControl.Height); 5715this.Left -= (this.Width - oldWidth); 5922pe.Graphics.DrawLine(pen, 0, y, Width, y); 5998Size sz = new Size(2 * DropDownHolderBorder + ctl.Width, 2 * DropDownHolderBorder + ctl.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (38)
489panelSize = Width - SplitterDistanceInternal - SplitterWidthInternal; 527return (Width >= Panel1MinSize + SplitterWidthInternal + Panel2MinSize); 808if (value + SplitterWidthInternal > this.Width - Panel2MinSize) 810value = this.Width - Panel2MinSize - SplitterWidthInternal; 845panelSize = Width - SplitterDistance - SplitterWidthInternal; 1159splitterDistance = (splitterDistance + SplitterWidth > Width - Panel2MinSize -BORDERSIZE) ? splitterDistance - SplitterIncrement : splitterDistance; 1276x = Math.Max(Math.Min(x, Width - Panel2MinSize), Panel1MinSize); 1447if (DesignMode && Width != DefaultSize.Width && value + Panel2MinSize + SplitterWidth > Width) { 1471if (DesignMode && Width != DefaultSize.Width && value + Panel1MinSize + SplitterWidth > Width) { 1495if (DesignMode && value + Panel1MinSize + Panel2MinSize > Width) { 1561r.X = Width - splitSize - SplitterWidthInternal; 1568r.Width = Width; 1678return Math.Max(Math.Min(size, Width - Panel2MinSize), Panel1MinSize); 1726splitterRect.X = ((RightToLeft == RightToLeft.Yes) ? this.Width - splitterDistance - SplitterWidthInternal : this.Location.X + splitterDistance); 1735splitterRect.Width = this.Width; 1755if (this.Width == 0) { // Set the correct Width iif the WIDTH has changed to ZERO. 1772panel2.Size = new Size(Math.Max(Width - panelSize - SplitterWidthInternal, Panel2MinSize), Height); 1776splitterDistance = Math.Max(Width - panelSize - SplitterWidthInternal, Panel1MinSize); 1782splitterDistance = Math.Max((int)(Math.Floor(this.Width / ratioWidth)), Panel1MinSize); 1786panel2.Size = new Size(Math.Max(Width - splitterDistance - SplitterWidthInternal, Panel2MinSize), Height); 1792panel1.Location = new Point(Width - panel1.WidthInternal, 0); 1817panel1.Size = new Size(Width, panelSize); 1819panel2.Size = new Size(Width, Math.Max(Height - panel2Start, Panel2MinSize)); 1824panel2.Size = new Size(Width, panelSize); 1827panel1.WidthInternal = Width; 1838panel1.WidthInternal = Width; 1840panel2.Size = new Size(Width,Math.Max(Height - panel2Start, Panel2MinSize)); 2205 if (size + SplitterWidthInternal <= this.Width - Panel2MinSize - BORDERSIZE) 2266panel2.Size = new Size(Width - splitterDistance - SplitterWidthInternal, Height); 2273panel1.Location = new Point(Width - splitterDistance, 0); 2280ratioWidth = ((double)(this.Width) / (double)(panel1.Width) > 0) ? (double)(this.Width) / (double)(panel1.Width) : ratioWidth; 2297 ratioWidth = ((double)(this.Width) / (double)(splitterDistance) > 0) ? (double)(this.Width) / (double)(splitterDistance) : ratioWidth; 2305panel1.WidthInternal = Width; 2309panel2.Size = new Size(Width, Height - panel2Start);
winforms\Managed\System\WinForms\Splitter.cs (3)
738dockWidth += ctl.Width; 853size = splitTarget.Width + delta; 856size = splitTarget.Width - delta;
winforms\Managed\System\WinForms\SplitterPanel.cs (2)
415return base.Width; 424return ((Panel)this).Width;
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1432if (this.Width == 0 || this.Height == 0) { 2257client = new Point(Width/2, Height/2);
winforms\Managed\System\WinForms\ToolStrip.cs (2)
5482insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.Top, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth); 5485insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.Bottom, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
2047position.Offset(control.IsMirrored ? Width : -Width, 0);
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
108preferredSize = new Size(this.ParentInternal.Width, gripThickness);
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
128bounds.Width = ParentInternal.Width;
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
690controlLocation = new Point(this.Width - controlArray[i].Right, controlLocation.Y); 715screenLocation.Offset(-toolStripToDrag.Width,0);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
1311int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.Width : toolStripToDrag.Width;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (8)
815g.FillRectangle(b, toolStrip.Width - 1, toolStrip.Height - 2, 1, 1); 816g.FillRectangle(b, toolStrip.Width - 2, toolStrip.Height - 1, 1, 1); 821g.FillRectangle(b, toolStrip.Width - 2, 0, 1, 1); 822g.FillRectangle(b, toolStrip.Width - 1, 1, 1, 1); 898e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0); 986b.TranslateTransform(parent.Width - control.Location.X, parent.Height -control.Location.Y); 1284bounds.Width = dropDownMenu.Width - bounds.X; 1290bounds.Width = dropDownMenu.Width - bounds.X - dropDownMenu.Padding.Right;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
154preferredSize.Width = (ParentInternal != null) ? ParentInternal.Width - 2 : preferredSize.Width; // Two for border
winforms\Managed\System\WinForms\ToolStripSeparator.cs (2)
420return new Size(parent.Width - (parent.Padding.Horizontal - dropDownMenu.ImageMargin.Width), WINBAR_SEPARATORTHICKNESS); 469rect.Width = dropDownMenu.Width -4;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (2)
680e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0); 688vsRenderer.DrawBackground(e.Graphics,new Rectangle(0,0,e.ToolStrip.Width-1, e.ToolStrip.Height-1));
winforms\Managed\System\WinForms\ToolStripTextBox.cs (5)
727hTotalRegion = new HandleRef(this, SafeNativeMethods.CreateRectRgn(0, 0, this.Width, this.Height)); 873g.FillRectangle(b, 0, 0, this.Width, clientRect.Top); // top border 875g.FillRectangle(b, 0, clientRect.Bottom, this.Width, this.Height - clientRect.Height); // bottom border 876g.FillRectangle(b, clientRect.Right, 0, this.Width - clientRect.Right, this.Height); // right border 881g.DrawRectangle(p, 0, 0, this.Width - 1, this.Height - 1);
winforms\Managed\System\WinForms\TreeView.cs (1)
2043oldSize = this.Width;
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1624client = new Point(Width / 2, Height / 2);
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
1986wp->cx = WebBrowserBase.Width;
System.Windows.Forms.DataVisualization (4)
WinForm\ChartWinControl.cs (2)
582 graphics.FillRectangle(Brushes.White, 0, 0, this.Width, this.Height); 586 RectangleF rect = new RectangleF(3, 3, this.Width-6, this.Height-6);
WinForm\Utilities\AccessibleObject.cs (2)
304absolute.X = bounds.X * (this._chart.Width - 1) / 100F; 306absolute.Width = bounds.Width * (this._chart.Width - 1) / 100F;
System.Workflow.Activities (1)
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
450this.listBoxAutoComplete.Size = new Size(this.listBoxAutoComplete.Width, topLevelControlSize.Height - listboxRectangle.Top);
System.Workflow.ComponentModel (20)
AuthoringOM\Design\DesignerWidgets.cs (14)
1553int minExtra = Math.Max(this.splitter.MinSize, Width - this.tabStrip.MaximumRequiredSize - this.splitter.Width); 1556updateSplitterPosition |= (this.itemsMinimized) ? /*minimized*/(this.splitter.SplitPosition != this.splitter.MinSize) : /*maximized*/(this.splitter.SplitPosition != Width - this.splitter.MinExtra); 1586if (!this.itemsMinimized && this.splitter.SplitPosition != Width - this.splitter.MinExtra) 1587this.splitter.SplitPosition = Width - this.splitter.MinExtra; 1608this.splitter.SplitPosition = ((this.splitter.Dock == DockStyle.Left || this.splitter.Dock == DockStyle.Right) ? Width : Height) - this.splitter.MinExtra; 1629e.Graphics.DrawLine(SystemPens.ControlLightLight, 0, 1, this.splitter.Width, 1); 1632e.Graphics.DrawLine(SystemPens.ControlDark, 0, SplitterSize - 2, this.splitter.Width, SplitterSize - 2); 1633e.Graphics.DrawLine(SystemPens.ControlDark, this.splitter.Width - 1, SplitterSize - 2, this.splitter.Width - 1, 1); 1635e.Graphics.DrawLine(SystemPens.ControlText, 0, SplitterSize - 1, this.splitter.Width, SplitterSize - 1); 1643this.splitter.MinExtra = (Width - this.tabStrip.MaximumRequiredSize - this.splitter.Width); 1954int maxTotalTabItemSize = ((this.orientation == Orientation.Horizontal) ? Width : Height);
AuthoringOM\Design\WorkflowView.cs (6)
449viewPortSize.Width = Math.Max(0, viewPortSize.Width - VScrollBar.Width); 1082e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(Width - SystemInformation.VerticalScrollBarWidth, Height - SystemInformation.HorizontalScrollBarHeight, SystemInformation.VerticalScrollBarWidth, SystemInformation.HorizontalScrollBarHeight)); 1273hScrollBar.Bounds = new Rectangle(0, Math.Max(0, Height - SystemInformation.HorizontalScrollBarHeight), Math.Max(Width - ((vScrollBar.Visible) ? SystemInformation.VerticalScrollBarWidth : 0), 0), SystemInformation.HorizontalScrollBarHeight); 1276vScrollBar.Bounds = new Rectangle(Math.Max(0, Width - SystemInformation.VerticalScrollBarWidth), 0, SystemInformation.VerticalScrollBarWidth, Math.Max(Height - ((hScrollBar.Visible) ? SystemInformation.HorizontalScrollBarHeight : 0), 0)); 1280this.toolContainer.Location = new Point(Width - this.toolContainer.Width, 0);
System.WorkflowServices (2)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
504this.Width = this.Parent.Width - 10;
System\Workflow\Activities\Design\RichListBox.cs (1)
169e.ItemWidth = listItemRenderer.Width;
WsatUI (1)
MMCUI\AcceptedCertificatesForm.cs (1)
111this.listAllowedCertificates.Columns[i].Width = (this.listAllowedCertificates.Width - this.listAllowedCertificates.Columns[0].Width) / (this.listAllowedCertificates.Columns.Count - 1);