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