431 writes to Width
System.Drawing (3)
commonui\System\Drawing\Rectangle.cs (3)
118
this.
Width
= value.Width;
395
this.
Width
+= 2*width;
430
this.
Width
= result.Width;
System.Web.DataVisualization (31)
Common\General\ChartGraphics.cs (2)
2420
absPositionRounded.
Width
= (int)Math.Round(absPosition.Right) - absPositionRounded.X;
2559
absPositionRounded.
Width
= (int)Math.Round(absPosition.Right) - absPositionRounded.X;
Common\General\Legend.cs (19)
749
cellPosition.
Width
+= overlappedCellPosition.Right - cellPosition.Right;
859
cellPosition.
Width
= this._subColumnSizes[columnIndex, cellIndex];
2471
separatorPosition.
Width
= right - separatorPosition.X;
2496
separatorRect.
Width
= this.GetSeparatorSize(this.ItemColumnSeparator).Width;
4043
legendPosition.
Width
-= 2 * this.GetBorderSize();
4047
++legendPosition.
Width
;
4081
rect.
Width
= this._subColumnSizes[columnIndex, subColumnIndex];
4117
fillRect.
Width
+= fillRect.X - legendPosition.X;
4127
fillRect.
Width
+= legendPosition.Right - fillRect.Right + 1;
4136
fillRect.
Width
+= this._itemColumnSpacingRel / 2;
4146
fillRect.
Width
+= this._itemColumnSpacingRel / 2;
4161
fillRect.
Width
-= (legendPosition.Right - fillRect.Right);
4166
fillRect.
Width
-= (legendPosition.X - fillRect.X);
4215
separatorRect.
Width
= columnWidth;
4220
legendPosition.
Width
-= 1;
4275
legendPosition.
Width
-= 2 * this.GetBorderSize();
4279
++legendPosition.
Width
;
4319
rect.
Width
-= this.GetBorderSize() * 2 + this._offset.Width;
4337
legendPosition.
Width
-= 1;
Common\General\LegendColumns.cs (10)
1449
this.cellPosition.
Width
-= (int)(this.Margins.Left * singleWCharacterSize.Width / 100f)
2099
imagePosition.
Width
= (int)imageSize.Width;
2104
imageCellPosition.
Width
= imagePosition.Width;
2116
imageCellPosition.
Width
= newWidth;
2142
imagePosition.
Width
= (int)(imagePosition.Width / scaleValue);
2231
seriesMarkerPosition.
Width
= newWidth;
2296
imageScale.
Width
= (int)imageSize.Width;
2312
imageScale.
Width
= (int)(imageScale.Width / scaleValue);
2437
imageScale.
Width
= (int)imageSize.Width;
2453
imageScale.
Width
= (int)(imageScale.Width / scaleValue);
System.Windows.Forms (318)
misc\GDI\WindowsGraphics2.cs (1)
252
bounds.
Width
= bounds.Width - bounds.X;
winforms\Managed\System\WinForms\AxHost.cs (1)
1775
b.
Width
= p.Width;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (12)
574
imageBounds.
Width
+= 1;
629
r.
Width
+= 1;
1146
layout.focus.
Width
--;
1227
layout.checkArea.
Width
= checkSizeFull + 1;
1233
layout.field.
Width
-= checkSizeFull + 1;
1239
layout.checkArea.
Width
= checkSizeFull + 1;
1244
layout.field.
Width
-= checkSizeFull + 1;
1248
layout.checkArea.
Width
= field.Width;
1259
layout.checkArea.
Width
= field.Width;
1272
layout.checkBounds.
Width
-= checkPaddingSize;
1382
layout.textBounds.
Width
= textRight - layout.textBounds.X;
1386
layout.imageBounds.
Width
= Math.Max(0, Math.Min(maxBounds.Width - layout.textBounds.Width, layout.imageBounds.Width));
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (6)
50
bounds.
Width
--;
60
bounds.
Width
--;
66
bounds.
Width
++;
74
bounds.
Width
++;
147
fullSize.
Width
++;
151
fullSize.
Width
++;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
45
layout.focus.
Width
= layout.textBounds.Width + layout.imageBounds.Width - 1;
50
layout.focus.
Width
+= 2;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (2)
47
bounds.
Width
--;
82
bounds.
Width
--;
winforms\Managed\System\WinForms\ComboBox.cs (2)
5943
whiteFillRect.
Width
= WhiteFillRectWidth;
5945
dropDownRect.
Width
-= WhiteFillRectWidth;
winforms\Managed\System\WinForms\Control.cs (2)
9741
rectangle.
Width
--;
18264
bounds.
Width
= adjusted.Width;
winforms\Managed\System\WinForms\ControlPaint.cs (4)
106
result.
Width
= bounds.Width;
120
result.
Width
= (int) ((imageSize.Width * yRatio) +.5);
1333
rectangle.
Width
--;
1438
rectangle.
Width
--;
winforms\Managed\System\WinForms\DataGrid.cs (35)
4524
refresh.
Width
= layout.Inside.Width;
4852
rightArea.
Width
-= left - rightArea.X;
4855
rightArea.
Width
= rightArea.Width - left;
4892
clip.
Width
= GetColBeg(col) - layout.Data.X - 2;
4898
clip.
Width
= layout.Data.X + layout.Data.Width - leftEdge - 2;
4993
rightArea.
Width
-= rightToLeft ? rightArea.Right - left : left - rightArea.X;
5405
rowHeaders.
Width
= newRowHeaderWidth;
5407
insideLeft.
Width
-= newRowHeaderWidth;
5412
rowHeaders.
Width
= newRowHeaderWidth;
5414
insideLeft.
Width
-= newRowHeaderWidth;
5424
topLeft.
Width
= newRowHeaderWidth;
5425
colHeaders.
Width
-= newRowHeaderWidth;
5431
topLeft.
Width
= newRowHeaderWidth;
5433
colHeaders.
Width
-= newRowHeaderWidth;
6328
rowRect.
Width
+= layout.RowHeaders.Width;
6452
rowBounds.
Width
= layout.Data.Width;
6601
columnArea.
Width
= gridColumns[column].Width;
6656
invalid.
Width
= layout.RowHeaders.Width;
6764
layout.Data.
Width
-= vertWidth;
6770
layout.ColumnHeaders.
Width
-= vertWidth;
6793
layout.Data.
Width
-= vertWidth;
6799
layout.ColumnHeaders.
Width
-= vertWidth;
7124
boundingRect.
Width
+= negOffset;
7131
boundingRect.
Width
= columnHeaderWidth;
7137
boundingRect.
Width
--;
7174
textBounds.
Width
= gridColumns[col].Width -
7181
textBounds.
Width
= gridColumns[col].Width -
7264
textBounds.
Width
= paintedWidth;
7278
textBounds.
Width
-= cx;
7310
bounds.
Width
--;
7433
headerBounds.
Width
= layout.RowHeaders.Width;
7447
rowBounds.
Width
-= headerBounds.Width;
7453
dataBounds.
Width
+= negOffset;
8183
rowHdrRect.
Width
= layout.RowHeaders.Width;
8851
underParentRows.
Width
+= layout.RowHeaders.Width;
winforms\Managed\System\WinForms\DataGridParentRows.cs (7)
152
ret.
Width
= layout.data.Width;
880
paintBounds.
Width
= Math.Min(paintBounds.Width, tableNameBoxWidth);
891
rowBounds.
Width
-= paintedWidth;
898
paintBounds.
Width
= bounds.Width - paintedWidth;
924
paintBounds.
Width
= Math.Min(bounds.Width - cx, colsNameWidths[i]);
943
paintBounds.
Width
= Math.Min(bounds.Width - cx, colsDataWidths[i]);
970
paintBounds.
Width
= Math.Min(bounds.Width - cx, 3);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (3)
576
bounds.
Width
-= errRect.Width + xOffset;
733
textBounds.
Width
= this.dgTable.FocusedTextWidth;
735
textBounds.
Width
= bounds.Width;
winforms\Managed\System\WinForms\DataGridRow.cs (1)
496
cellBounds.
Width
= columns[col].Width - bWidth;
winforms\Managed\System\WinForms\DataGridTable.cs (2)
926
relationshipRect.
Width
= longestRelationship + 5;
927
relationshipRect.
Width
+= 2; // relationshipRect border;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
486
bounds.
Width
-= xMargin;
winforms\Managed\System\WinForms\DataGridView.cs (4)
2699
rectDisplay.
Width
-= this.vertScrollBar.Width;
3421
rectTmp.
Width
++;
3431
rectTmp.
Width
--;
3438
rectTmp.
Width
-= totalVisibleFrozenWidth;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
450
rectThemeMargins.
Width
= DATAGRIDVIEWBUTTONCELL_themeMargin - rectContent.Right;
731
valBounds.
Width
-= borderWidths.Right;
751
valBounds.
Width
-= cellStyle.Padding.Horizontal;
1014
valBounds.
Width
-= 2 * DATAGRIDVIEWBUTTONCELL_horizontalTextMargin;
1021
valBounds.
Width
--;
winforms\Managed\System\WinForms\DataGridViewCell.cs (12)
1071
rect.
Width
= (advancedBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None) ? 0 : 1;
1074
rect.
Width
++;
1091
rect.
Width
+= this.owningColumn.DividerWidth;
3601
bounds.
Width
-= dividerThickness;
4359
rectPadding.
Width
= cellStyle.Padding.Left;
4368
rectPadding.
Width
= cellStyle.Padding.Right;
4373
rectPadding.
Width
= bounds.Width - cellStyle.Padding.Horizontal;
4547
borderAndPaddingWidths.
Width
+= cellStyle.Padding.Right;
5117
columnRect.
Width
= this.owner.OwningColumn.Width;
5130
columnRect.
Width
+= negOffset;
5151
columnRect.
Width
= this.owner.OwningColumn.Width;
5155
rowRect.
Width
= columnRect.Width;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
1175
valBounds.
Width
-= borderWidths.Right;
1234
valBounds.
Width
-= cellStyle.Padding.Horizontal;
1399
checkBounds.
Width
++;
1420
fullSize.
Width
++;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (7)
795
valBounds.
Width
-= borderWidths.Right;
816
valBounds.
Width
-= cellStyle.Padding.Horizontal;
881
valBounds.
Width
-= rectThemeMargins.X + rectThemeMargins.Width;
886
valBounds.
Width
-= rectThemeMargins.X + rectThemeMargins.Width;
910
valBounds.
Width
-= cellStyle.Padding.Horizontal;
928
valBounds.
Width
-= DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginLeft + DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginRight;
954
valBounds.
Width
-= sortGlyphSeparatorWidth +
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (16)
752
borderAndPaddingWidths.
Width
+= cellStyle.Padding.Right;
2005
cellBounds.
Width
+= this.DataGridView.FirstDisplayedScrollingColumnHiddenWidth;
2148
valBounds.
Width
-= borderWidths.Right;
2184
valBounds.
Width
-= cellStyle.Padding.Horizontal;
2460
dropRect.
Width
++;
2477
dropRect.
Width
--;
2501
textBounds.
Width
++;
2508
errorBounds.
Width
-= dropWidth;
2509
textBounds.
Width
-= dropWidth;
2518
errorBounds.
Width
-= dropWidth + 1;
2519
textBounds.
Width
-= dropWidth + 1;
2545
focusBounds.
Width
++;
2554
focusBounds.
Width
-= 2;
2570
valBounds.
Width
--;
2587
textBounds.
Width
+= 2 - DATAGRIDVIEWCOMBOBOXCELL_horizontalTextMarginLeft;
2592
textBounds.
Width
+= 1 - DATAGRIDVIEWCOMBOBOXCELL_horizontalTextMarginLeft;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
489
rectThemeMargins.
Width
= DATAGRIDVIEWHEADERCELL_themeMargin - rectContent.Right;
652
valBounds.
Width
-= borderWidths.Right;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (2)
820
valBounds.
Width
-= borderWidths.Right;
836
imgBounds.
Width
-= cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (5)
1013
valBounds.
Width
-= borderWidths.Right;
1036
valBounds.
Width
-= cellStyle.Padding.Horizontal;
1047
valBounds.
Width
-= DATAGRIDVIEWLINKCELL_horizontalTextMarginLeft + DATAGRIDVIEWLINKCELL_horizontalTextMarginRight;
1076
focusBounds.
Width
++;
1081
focusBounds.
Width
++;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (50)
2494
cursorClip.
Width
= Math.Min(frozenWidth, this.layout.Data.Width);
2507
cursorClip.
Width
= Math.Min(scrollingWidth, this.layout.Data.Width);
2568
clip.
Width
= leftEdge - this.Columns[columnIndex].MinimumThickness - this.layout.Data.X + 3;
2573
clip.
Width
-= overflowWidth;
2579
clip.
Width
= this.layout.Data.Right - leftEdge - 1;
2583
clip.
Width
-= overflowWidth;
2783
clip.
Width
-= minimumRowHeadersWidth - 1;
4349
inside.
Width
= 0;
4372
rowHeaders.
Width
= Math.Min(this.rowHeadersWidth, rowHeaders.Width);
4381
insideLeft.
Width
-= rowHeaders.Width;
4390
topLeft.
Width
= Math.Min(this.rowHeadersWidth, topLeft.Width);
4391
colHeaders.
Width
-= topLeft.Width;
4424
insideLeft.
Width
--;
5503
rectScrollingArea.
Width
-= emptyBackgroundWidth;
5518
rectScrollingArea.
Width
-= frozenVisibleColumnsWidth;
6895
rect.
Width
++;
7160
rowRect.
Width
+= width;
7169
rowRect.
Width
+= width;
9187
rowRect.
Width
+= this.layout.RowHeaders.Width;
10396
this.layout.Data.
Width
-= vertScrollBarWidth;
10404
this.layout.ColumnHeaders.
Width
-= vertScrollBarWidth;
10426
this.layout.ColumnHeaders.
Width
+= vertScrollBarWidth;
10432
this.layout.Data.
Width
+= vertScrollBarWidth;
10448
this.layout.Data.
Width
-= vertScrollBarWidth;
10456
this.layout.ColumnHeaders.
Width
-= vertScrollBarWidth;
14965
rightArea.
Width
-= rightArea.Right - leftEdge;
14969
rightArea.
Width
-= leftEdge - rightArea.X;
17200
gridRect.
Width
++;
17241
focusRect.
Width
-= change;
17247
focusRect.
Width
+= change;
17272
edge.
Width
= 1;
19801
rcNextRows.
Width
-= this.layout.RowHeaders.Width;
19809
rcNextRows.
Width
--;
19817
rcNextRows.
Width
-= rowsWidth;
19851
edge.
Width
= borderWidth;
19907
cellBounds.
Width
= dataGridViewColumn.Thickness;
19910
cellBounds.
Width
++;
19961
scrollingBounds.
Width
+= this.negOffset;
19974
rowRect.
Width
-= cx;
19984
cellBounds.
Width
= dataGridViewColumn.Thickness;
19987
cellBounds.
Width
++;
20066
columnHeadersClip.
Width
++;
20228
cellBounds.
Width
= this.rowHeadersWidth;
20378
editingZone.
Width
= Math.Max(0, editingZone.Width - totalVisibleFrozenWidth);
20410
cellBounds.
Width
++;
20411
cellClip.
Width
++;
26449
rowsRect.
Width
++;
26476
rowsRect.
Width
= this.layout.RowHeaders.Width;
29069
bottomArea.
Width
++;
29133
bottomArea.
Width
++;
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
1619
cellBounds.
Width
= dataGridViewColumn.Thickness;
1622
cellBounds.
Width
++;
1685
dataBounds.
Width
+= dataGridView.FirstDisplayedScrollingColumnHiddenWidth;
1696
rowRect.
Width
-= cx;
1706
cellBounds.
Width
= dataGridViewColumn.Thickness;
1709
cellBounds.
Width
++;
1798
cellBounds.
Width
= dataGridView.RowHeadersWidth;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (8)
787
valBounds.
Width
-= borderWidths.Right;
805
valBounds.
Width
-= cellStyle.Padding.Horizontal;
856
valBounds.
Width
-= rectThemeMargins.Y + rectThemeMargins.Height;
883
valBounds.
Width
-= cellStyle.Padding.Horizontal;
963
valBounds.
Width
-= iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth;
970
valBounds.
Width
-= DATAGRIDVIEWROWHEADERCELL_horizontalTextMarginLeft + 2 * DATAGRIDVIEWROWHEADERCELL_contentMarginWidth + DATAGRIDVIEWROWHEADERCELL_horizontalTextMarginRight;
990
valBounds.
Width
-= iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth;
1219
rowRect.
Width
= this.Owner.DataGridView.RowHeadersWidth;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (8)
208
editingControlBounds.
Width
= Math.Max(0, editingControlBounds.Width - DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetLeft - 2);
213
editingControlBounds.
Width
= Math.Max(0, editingControlBounds.Width - DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetLeft - 1);
221
editingControlBounds.
Width
= Math.Max(0, editingControlBounds.Width - 3);
231
editingControlBounds.
Width
= Math.Max(0, editingControlBounds.Width - DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetRight);
236
editingControlBounds.
Width
= Math.Max(0, editingControlBounds.Width - DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetRight - 1);
698
valBounds.
Width
-= borderWidths.Right;
732
valBounds.
Width
-= cellStyle.Padding.Horizontal;
757
valBounds.
Width
-= DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginLeft + DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginRight;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (3)
277
valBounds.
Width
-= borderWidths.Right;
328
valBounds.
Width
-= cellStyle.Padding.Horizontal;
337
valBounds.
Width
-= DATAGRIDVIEWTOPLEFTHEADERCELL_horizontalTextMarginLeft + DATAGRIDVIEWTOPLEFTHEADERCELL_horizontalTextMarginRight;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
294
bounds.
Width
= BUTTON_WIDTH;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (2)
166
r.
Width
-= 1;
173
r.
Width
-= 1;
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (2)
177
resultBounds.
Width
++;
182
resultBounds.
Width
-= 4;
winforms\Managed\System\WinForms\Form.cs (5)
3454
bounds.
Width
= correct.Width;
5876
restoredWindowBounds.
Width
= width;
5891
restoreBounds.
Width
= width;
5997
adjustedBounds.
Width
= Width;
7856
r.
Width
-= r.X;
winforms\Managed\System\WinForms\GroupBox.cs (1)
562
textRectangle.
Width
-= 2 * textOffset;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (8)
170
textBounds.
Width
-= 2 * boxHeaderWidth;
172
textBounds.
Width
= measuredBounds.Width;
194
clipLeft.
Width
= boxHeaderWidth;
195
clipMiddle.
Width
= Math.Max(0, textBounds.Width - 3); // -3 to account for the margin built in the MeasureText result
200
clipRight.
Width
= clipMiddle.X - boxBounds.X;
206
clipRight.
Width
= boxBounds.Right - clipRight.X;
263
textBounds.
Width
-= textOffset;
265
textBounds.
Width
= measuredBounds.Width;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
214
bounds.
Width
= Math.Min(bounds.Width, value.Width);
236
bounds.
Width
= Math.Max(bounds.Width, value.Width);
289
if (!wChangedButNotSpecified) originalBounds.
Width
= width;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (2)
306
remainingBounds.
Width
-= element.Bounds.Width;
316
remainingBounds.
Width
-= element.Bounds.Width;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
112
displayRect.
Width
= Int32.MaxValue - displayRect.X;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (8)
266
withinThis.
Width
= alignThis.Width;
278
withinThis.
Width
= alignThis.Width;
326
rect.
Width
+= padding.Horizontal;
334
rect.
Width
-= padding.Horizontal;
440
region1.
Width
= specifiedContent.Width;
442
region2.
Width
-= specifiedContent.Width;
446
region1.
Width
= specifiedContent.Width;
447
region2.
Width
-= specifiedContent.Width;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
1229
cellBounds.
Width
= Math.Max(cellBounds.Width, 1);
1238
elementBounds.
Width
= Math.Min(cellBounds.Width, elementBounds.Width);
winforms\Managed\System\WinForms\ListBox.cs (2)
2333
bounds.
Width
= Math.Max(ColumnWidth, bounds.Width);
2336
bounds.
Width
= Math.Max(MaxItemWidth, bounds.Width);
winforms\Managed\System\WinForms\ListView.cs (3)
2647
subItemBounds.
Width
= this.columnHeaders[0].Width;
4715
rectInvalid.
Width
+= rectInvalid.X;
4726
rectInvalid.
Width
+= this.ClientRectangle.Right - rectInvalid.Right;
winforms\Managed\System\WinForms\PictureBox.cs (1)
463
result.
Width
= (int)(imageSize.Width * ratio);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
644
box.
Width
--;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
5067
r.
Width
--;
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
181
inside.
Width
-= 3;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
1899
rect.
Width
= totalWidth - rect.X;
2149
rectPaint.
Width
--;
2156
rect.
Width
-= cPaint + 2 * gridHost.GetValueStringIndent();
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (11)
2144
rect.
Width
= size.Width - 1;
2148
rect.
Width
= InternalLabelWidth - 1;
2152
rect.
Width
= size.Width - InternalLabelWidth;
2373
r.
Width
-= r.X;
4421
rect.
Width
-= 1;
4433
rect.
Width
-= (sizeBtn.Width);
4440
rect.
Width
-= paintIndent + 1;
4444
rect.
Width
-= EDIT_INDENT + 1;
4468
rect.
Width
-= (LEFTDOT_SIZE * 2);
4484
rect.
Width
-= 1;
5863
newBounds.
Width
= dragBaseRect.Width - delta;
winforms\Managed\System\WinForms\ScrollableControl.cs (7)
270
rect.
Width
= displayRect.Width;
288
displayRectangle.
Width
= Math.Max(displayRectangle.Width, AutoScrollMinSize.Width);
407
display.
Width
= client.Width;
437
fullClient.
Width
+= SystemInformation.VerticalScrollBarWidth;
440
minClient.
Width
-= SystemInformation.VerticalScrollBarWidth;
595
clientToBe.
Width
-= SystemInformation.VerticalScrollBarWidth;
1135
displayRect.
Width
= width;
winforms\Managed\System\WinForms\SplitContainer.cs (6)
1551
r.
Width
= SplitterWidthInternal ;
1554
r.
Width
= minWeight;
1568
r.
Width
= Width;
1571
r.
Width
= minWeight;
1728
splitterRect.
Width
= SplitterWidthInternal;
1735
splitterRect.
Width
= this.Width;
winforms\Managed\System\WinForms\Splitter.cs (4)
460
bounds.
Width
= value;
464
bounds.
Width
= value;
676
if (r.Width < minWeight) r.
Width
= minWeight;
680
if (r.Width < minWeight) r.
Width
= minWeight;
winforms\Managed\System\WinForms\ToolStrip.cs (4)
855
rect.
Width
-= gripwidth;
4293
gripRectangle.
Width
= Grip.GripThickness;
4307
gripRectangle.
Width
= displayRect.Width;
5500
insertionRect.
Width
= ToolStrip.insertionBeamWidth;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
279
options.client.
Width
-= widthOfDropDown;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
302
bounds.
Width
-= 1;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
128
bounds.
Width
= ParentInternal.Width;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
1209
bounds.
Width
= ParentInternal.DisplayRectangle.Width;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
272
bounds.
Width
-= spaceToFree;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
451
cachedBounds.
Width
= (spaceToFree < 0) ? minSize.Width + -spaceToFree : minSize.Width;
945
displayRect.
Width
= ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal;
948
displayRect.
Width
= raftingDisplayRectangle.Width - Row.Margin.Horizontal;
976
dragBounds.
Width
+= Row.Margin.Horizontal + ToolStripPanel.Padding.Horizontal +5;
1475
dragBounds.
Width
+= dragBounds.X - x;
1482
dragBounds.
Width
+= (nextRowBounds.Width >> 2) + Row.Margin.Right + ToolStripPanel.RowsInternal[index + 1].Margin.Left;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (6)
851
beginGradient.
Width
= firstGradientWidth;
852
endGradient.
Width
= secondGradientWidth + 1;
878
endGradient.
Width
-= 1;
1065
overflowBoundsFill.
Width
= overflowButtonWidth;
1284
bounds.
Width
= dropDownMenu.Width - bounds.X;
1290
bounds.
Width
= dropDownMenu.Width - bounds.X - dropDownMenu.Padding.Right;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
469
rect.
Width
= dropDownMenu.Width -4;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
381
splitButtonButtonBounds.
Width
-= splitterWidth;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (3)
231
bounds.
Width
-= 1;
285
bounds.
Width
= 3;
396
fillRect.
Width
-= 3; //its already 1 away from the right edge
winforms\Managed\System\WinForms\TreeView.cs (1)
2740
bounds.
Width
+= value;
winforms\Managed\System\WinForms\UpDownBase.cs (2)
828
backRect.
Width
++;
844
backRect.
Width
++;
System.Windows.Forms.DataVisualization (33)
Common\General\ChartGraphics.cs (2)
2420
absPositionRounded.
Width
= (int)Math.Round(absPosition.Right) - absPositionRounded.X;
2559
absPositionRounded.
Width
= (int)Math.Round(absPosition.Right) - absPositionRounded.X;
Common\General\Legend.cs (19)
749
cellPosition.
Width
+= overlappedCellPosition.Right - cellPosition.Right;
859
cellPosition.
Width
= this._subColumnSizes[columnIndex, cellIndex];
2471
separatorPosition.
Width
= right - separatorPosition.X;
2496
separatorRect.
Width
= this.GetSeparatorSize(this.ItemColumnSeparator).Width;
4043
legendPosition.
Width
-= 2 * this.GetBorderSize();
4047
++legendPosition.
Width
;
4081
rect.
Width
= this._subColumnSizes[columnIndex, subColumnIndex];
4117
fillRect.
Width
+= fillRect.X - legendPosition.X;
4127
fillRect.
Width
+= legendPosition.Right - fillRect.Right + 1;
4136
fillRect.
Width
+= this._itemColumnSpacingRel / 2;
4146
fillRect.
Width
+= this._itemColumnSpacingRel / 2;
4161
fillRect.
Width
-= (legendPosition.Right - fillRect.Right);
4166
fillRect.
Width
-= (legendPosition.X - fillRect.X);
4215
separatorRect.
Width
= columnWidth;
4220
legendPosition.
Width
-= 1;
4275
legendPosition.
Width
-= 2 * this.GetBorderSize();
4279
++legendPosition.
Width
;
4319
rect.
Width
-= this.GetBorderSize() * 2 + this._offset.Width;
4337
legendPosition.
Width
-= 1;
Common\General\LegendColumns.cs (10)
1449
this.cellPosition.
Width
-= (int)(this.Margins.Left * singleWCharacterSize.Width / 100f)
2099
imagePosition.
Width
= (int)imageSize.Width;
2104
imageCellPosition.
Width
= imagePosition.Width;
2116
imageCellPosition.
Width
= newWidth;
2142
imagePosition.
Width
= (int)(imagePosition.Width / scaleValue);
2231
seriesMarkerPosition.
Width
= newWidth;
2296
imageScale.
Width
= (int)imageSize.Width;
2312
imageScale.
Width
= (int)(imageScale.Width / scaleValue);
2437
imageScale.
Width
= (int)imageSize.Width;
2453
imageScale.
Width
= (int)(imageScale.Width / scaleValue);
WinForm\Utilities\Printing.cs (2)
257
marginPixel.
Width
= (int)(marginPixel.Width * (ev.Graphics.DpiX / 100.0f));
266
chartPosition.
Width
= (int)(chartPosition.Width * Math.Min(chartWidthScale, chartHeightScale));
System.Workflow.Activities (2)
Designers\ConditionalDesigner.cs (1)
98
diamondRectangle.
Width
= compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.Margin.Height + 2;
Designers\ListenDesigner.cs (1)
78
roundRectangle.
Width
= compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.Margin.Height - 1;
System.Workflow.ComponentModel (43)
AuthoringOM\Design\ActivityDesigner.cs (3)
2969
bounds.
Width
+= 1; bounds.Height += 1;
3044
smartTagRectangle.
Width
= imageSize.Width + glyphSize.Width / 2 + 3 * margin.Width;
3104
dropDownRectangle.
Width
= glyphSize.Width / 2;
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
799
dropConnector.
Width
= (dropConnector.Width > ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0)) ? ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) : dropConnector.Width;
996
rectangle.
Width
*= 2;
AuthoringOM\Design\DesignerHelpers.cs (3)
203
rectangle.
Width
= Math.Min(size.Width, destination.Width);
547
bounds.
Width
+= inflate.Width;
551
bounds.
Width
+= inflate.Width;
AuthoringOM\Design\DesignerWidgets.cs (17)
240
itemRectangle.
Width
= itemRectangle.Height;
1297
bounds.
Width
+= DropShadowWidth;
1991
this.drawItems[i].TabItemRectangle.
Width
= tabItemSize;
1998
this.drawItems[i].TabItemRectangle.
Width
= this.reqTabItemSize;
2023
this.drawItems[i].TabItemRectangle.
Width
-= itemSizeDecrease;
2025
this.drawItems[i].TabItemRectangle.
Width
= this.reqTabItemSize;
2113
textRectangle.
Width
-= (imageRectangle.Width + TabMargin);
2659
this.bounds.
Width
= 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width;
2660
this.bounds.
Width
+= (itemSize.Width * ((designerTheme != null) ? designerTheme.PreviewItemCount : 0));
2661
this.bounds.
Width
+= (itemMargin.Width * (((designerTheme != null) ? designerTheme.PreviewItemCount : 0) + 1));
2662
this.bounds.
Width
+= GetButtonBounds(ScrollButton.Left).Size.Width;
2663
this.bounds.
Width
+= GetButtonBounds(ScrollButton.Right).Size.Width;
2758
dropTargets[activeDropTarget].
Width
= itemMargin.Width;
2833
stripRectangle.
Width
= (scrollRightButton.Left - margin.Width) - (scrollLeftButton.Right + margin.Width);
3383
this.canvasBounds.
Width
= Math.Max(this.canvasBounds.Width, minWidth);
3391
this.previewModeButtonRectangle.
Width
= this.previewModeButtonRectangle.Size.Height;
3464
destnRectangle.
Width
= Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.Width / stretchFactor));
AuthoringOM\Design\FreeFormDesigner.cs (2)
937
bounds.
Width
= Math.Max(minRectangle.Right - bounds.Left, e.Bounds.Right - bounds.Left);
1140
enclosingRectangle.
Width
= rightBottom.X - leftTop.X;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
57
bounds.
Width
*= 2;
87
activatedBounds.
Width
-= (bounds.Width + 2 * ambientTheme.Margin.Width);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
290
designerBounds.
Width
+= (designerBounds.Left - x);
308
designerBounds.
Width
+= (point.X - designerBounds.Right);
314
designerBounds.
Width
= Math.Max(designerBounds.Width, designerToSize.MinimumSize.Width);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (1)
111
bounds.
Width
= Math.Max(imageBounds.Width, textBounds.Width) + 2 * margin.Width;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (3)
371
imageRectangle.
Width
+= SequentialWorkflowRootDesigner.HeaderFooterSizeIncr;
401
headerBarRectangle.
Width
= AssociatedDesigner.Size.Width;
454
imageRectangle.
Width
+= SequentialWorkflowRootDesigner.HeaderFooterSizeIncr;
AuthoringOM\Design\WorkflowLayouts.cs (6)
433
insersectedLogicalViewPort.
Width
= pageLayoutData.LogicalPageBounds.Width - deltaLocation.X;
434
insersectedLogicalViewPort.
Width
-= deltaSize.Width;
468
insersectedPhysicalViewPort.
Width
= pageLayoutData.ViewablePageBounds.Width - deltaLocation.X;
469
insersectedPhysicalViewPort.
Width
-= deltaSize.Width;
566
viewPortBitmapArea.
Width
= pageLayoutData.LogicalPageBounds.Width;
672
viewPortBitmapArea.
Width
= intersectedViewPort.Width;
AuthoringOM\Design\WorkflowPrinting.cs (1)
267
layoutRectangle.
Width
= Math.Min(headerFooterPrintData.PageBoundsWithoutMargin.Width, layoutRectangle.Width);
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
86
frameRect.
Width
+= Margin.Left + Margin.Right;
1295 references to Width
System.Drawing (64)
commonui\System\Drawing\Advanced\GPRECT.cs (1)
32
Width = rect.
Width
;
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
803
AddArc(rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
1170
rect.
Width
, rect.Height);
1229
AddEllipse(rect.X, rect.Y, rect.
Width
, rect.Height);
1259
AddPie(rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (2)
144
if (rect.
Width
== 0 || rect.Height == 0) {
240
if (rect.
Width
== 0 || rect.Height == 0) {
commonui\System\Drawing\Advanced\RectangleF.cs (1)
479
return new RectangleF(r.X, r.Y, r.
Width
, r.Height);
commonui\System\Drawing\Advanced\TextureBrush.cs (2)
167
dstRect.
Width
,
278
dstRect.
Width
,
commonui\System\Drawing\Bitmap.cs (2)
490
if (rect.
Width
== 0 || rect.Height == 0) {
499
rect.
Width
,
commonui\System\Drawing\BufferedGraphicsContext.cs (5)
117
Debug.WriteLineIf(DoubleBuffering.TraceWarning, "Too big of buffer requested (" + targetRectangle.
Width
+ " x " + targetRectangle.Height + ") ... allocating temp buffer manager");
132
Debug.WriteLineIf(DoubleBuffering.TraceWarning, "Too big of buffer requested (" + targetRectangle.
Width
+ " x " + targetRectangle.Height + ") ... allocating temp buffer manager");
170
surface = CreateBuffer(destDc, -targetLoc.X, -targetLoc.Y, targetRectangle.
Width
, targetRectangle.Height);
177
surface = CreateBuffer(targetDC, -targetLoc.X, -targetLoc.Y, targetRectangle.
Width
, targetRectangle.Height);
674
return (targetBounds.
Width
* targetBounds.Height) > (MaximumBuffer.Width * MaximumBuffer.Height);
commonui\System\Drawing\Graphics.cs (19)
1307
DrawArc(pen, rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
1411
DrawRectangle(pen, rect.X, rect.Y, rect.
Width
, rect.Height);
1546
DrawEllipse(pen, rect.X, rect.Y, rect.
Width
, rect.Height);
1607
DrawPie(pen, rect.X, rect.Y, rect.
Width
, rect.Height, startAngle,
2022
FillRectangle(brush, rect.X, rect.Y, rect.
Width
, rect.Height);
2208
FillEllipse(brush, rect.X, rect.Y, rect.
Width
, rect.Height);
2238
FillPie(brush, rect.X, rect.Y, rect.
Width
, rect.Height, startAngle,
2834
DrawImage(image, rect.X, rect.Y, rect.
Width
, rect.Height);
2897
int width = Math.Min(rect.
Width
, image.Width);
3030
srcRect.
Width
,
3090
destRect.
Width
,
3094
srcRect.
Width
,
3256
srcRect.
Width
,
3312
destRect.
Width
,
3367
destRect.
Width
,
3959
rect.
Width
, rect.Height, combineMode);
4026
rect.
Width
, rect.Height, CombineMode.Intersect);
4065
rect.
Width
, rect.Height, CombineMode.Exclude);
4356
rect.
Width
, rect.Height, out isVisible);
commonui\System\Drawing\Icon.cs (2)
434
imageWidth = imageRect.
Width
;
445
targetWidth = targetRect.
Width
;
commonui\System\Drawing\Printing\PrintController.cs (1)
266
pageBounds.
Width
- (pageSettings.Margins.Left + pageSettings.Margins.Right),
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
85
Convert(value.
Width
, fromUnit, toUnit),
commonui\System\Drawing\Rectangle.cs (20)
115
return new Size(
Width
, Height);
216
return X +
Width
;
237
/// Tests whether this <see cref='System.Drawing.Rectangle'/> has a <see cref='System.Drawing.Rectangle.
Width
'/>
265
(comp.
Width
== this.
Width
) &&
279
&& left.
Width
== right.
Width
340
x < this.X + this.
Width
&&
368
((rect.X + rect.
Width
) <= (this.X + this.
Width
)) &&
381
(((UInt32)
Width
<< 26) | ((UInt32)
Width
>> 6)) ^
430
this.Width = result.
Width
;
440
int x2 = Math.Min(a.X + a.
Width
, b.X + b.
Width
);
458
return(rect.X < this.X + this.
Width
) &&
459
(this.X < (rect.X + rect.
Width
)) &&
474
int x2 = Math.Max(a.X + a.
Width
, b.X + b.
Width
);
509
",Width=" +
Width
.ToString(CultureInfo.CurrentCulture) +
commonui\System\Drawing\RectangleConverter.cs (2)
130
args[nArg++] = intConverter.ConvertToString(context, culture, rect.
Width
);
142
rect.X, rect.Y, rect.
Width
, rect.Height});
commonui\System\Drawing\Region.cs (1)
967
rect.
Width
, rect.Height,
misc\GDI\WindowsRegion.cs (1)
135
this.nativeHandle = IntSafeNativeMethods.CreateRectRgn(rect.X, rect.Y, rect.X+rect.
Width
, rect.Y+rect.Height);
System.Web.DataVisualization (43)
Common\General\Legend.cs (10)
476
legendPosition.
Width
,
513
legendPosition.
Width
- (this.GetBorderSize() + this._offset.Width) * 2,
531
legendPosition.
Width
- 2 * (this._offset.Width + this.GetBorderSize()),
2503
if(separatorRect.
Width
> 0 && separatorRect.Height > 0)
2522
separatorRect.X += separatorRect.
Width
;
2536
int step = (this._legendItemsAreaPosition.
Width
/ 3) / markerCount;
2541
this._legendItemsAreaPosition.X + this._legendItemsAreaPosition.
Width
/ 2 - step * (float)Math.Floor(markerCount/2f),
4032
this._headerPosition.
Width
> 0 &&
4089
columnWidth += rect.
Width
;
4093
if(rect.
Width
> 0 && rect.Height > 0)
Common\General\LegendColumns.cs (32)
1915
if(this.cellPosition.
Width
<= 0 || this.cellPosition.Height <= 0)
2104
imageCellPosition.Width = imagePosition.
Width
;
2112
if(newWidth > this.cellPosition.
Width
)
2114
newWidth = this.cellPosition.
Width
;
2135
if(imagePosition.
Width
> imageCellPosition.
Width
)
2137
scaleValue = Math.Max(scaleValue, (float)imagePosition.
Width
/ (float)imageCellPosition.
Width
);
2142
imagePosition.Width = (int)(imagePosition.
Width
/ scaleValue);
2145
imagePosition.X = (int)((this.cellPosition.X + this.cellPosition.
Width
/2f) - imagePosition.
Width
/2f);
2159
imagePosition.X = this.cellPosition.Right - imagePosition.
Width
;
2227
if(newWidth > this.cellPosition.
Width
)
2229
newWidth = this.cellPosition.
Width
;
2244
if(seriesMarkerPosition.Height <= 0 || seriesMarkerPosition.
Width
<= 0)
2250
seriesMarkerPosition.X = (int)((this.cellPosition.X + this.cellPosition.
Width
/2f) - seriesMarkerPosition.
Width
/2f);
2264
seriesMarkerPosition.X = this.cellPosition.Right - seriesMarkerPosition.
Width
;
2305
if (imageScale.
Width
> seriesMarkerPosition.
Width
)
2307
scaleValue = Math.Max(scaleValue, (float)imageScale.
Width
/ (float)seriesMarkerPosition.
Width
);
2312
imageScale.Width = (int)(imageScale.
Width
/ scaleValue);
2314
imageScale.X = (int)((seriesMarkerPosition.X + seriesMarkerPosition.
Width
/ 2f) - imageScale.
Width
/ 2f);
2407
int markerSize = (int)Math.Min(seriesMarkerPosition.
Width
, seriesMarkerPosition.Height);
2423
point.X = (int)(seriesMarkerPosition.X + seriesMarkerPosition.
Width
/2f);
2446
if(imageScale.
Width
> seriesMarkerPosition.
Width
)
2448
scaleValue = Math.Max(scaleValue, (float)imageScale.
Width
/ (float)seriesMarkerPosition.
Width
);
2453
imageScale.Width = (int)(imageScale.
Width
/ scaleValue);
WebForm\ChartWebControl.cs (1)
1053
this.chartPicture.Width = position.
Width
;
System.Web.Mobile (2)
UI\MobileControls\Design\Util\GroupLabel.cs (2)
51
g.DrawLine(SystemPens.ControlDark, etchLeft, etchTop, r.
Width
, etchTop);
54
g.DrawLine(SystemPens.ControlLightLight, etchLeft, etchTop, r.
Width
, etchTop);
System.Windows.Forms (947)
misc\GDI\WindowsGraphics2.cs (5)
91
int sideLength = Math.Min(bounds.
Width
, bounds.Height);
250
if( bounds.
Width
== MaxSize.Width )
252
bounds.Width = bounds.
Width
- bounds.X;
580
DrawRectangle(pen, rect.X, rect.Y, rect.
Width
, rect.Height);
618
FillRectangle(brush, rect.X, rect.Y, rect.
Width
, rect.Height);
misc\GDI\WindowsRegion.cs (1)
135
this.nativeHandle = IntSafeNativeMethods.CreateRectRgn(rect.X, rect.Y, rect.X+rect.
Width
, rect.Y+rect.Height);
winforms\Managed\System\WinForms\AccessibleObject.cs (2)
1365
pcxWidth = bounds.
Width
;
1381
pcxWidth = bounds.
Width
;
winforms\Managed\System\WinForms\AxHost.cs (3)
1578
if (oldBounds.X == x && oldBounds.Y == y && oldBounds.
Width
== width &&
1589
if (width != oldBounds.
Width
|| height != oldBounds.Height) {
4616
dest.right = source.
Width
+ source.X;
winforms\Managed\System\WinForms\ButtonBase.cs (1)
1133
ShowToolTip = (this.ClientRectangle.
Width
< preferredSize.Width || this.ClientRectangle.Height < preferredSize.Height);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (26)
179
Point p1 = new Point(bounds.X + bounds.
Width
- 1, bounds.Y ); // upper inner right.
182
Point p4 = new Point(bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1 ); // inner bottom right.
273
Point p1 = new Point(bounds.X + bounds.
Width
- 1, bounds.Y ); // upper inner right.
276
Point p4 = new Point(bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1 ); // inner bottom right.
343
Point p1 = new Point(bounds.X + bounds.
Width
- 1, bounds.Y ); // upper inner right.
346
Point p4 = new Point(bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1 ); // inner bottom right.
505
size = System.Math.Min(size, System.Math.Min(r.
Width
, r.Height));
512
g.FillRectangle(brush, (r.X + r.
Width
- size), r.Y, size, r.Height);
515
g.FillRectangle(brush, (r.X + size), r.Y, (r.
Width
- size * 2), size);
518
g.FillRectangle(brush, (r.X + size), (r.Y + r.Height - size), (r.
Width
- size * 2), size);
608
g.DrawRectangle(pen, r.X, r.Y, r.
Width
- 1, r.Height - 1);
1131
layout.textBounds.
Width
+ 2, layout.textBounds.Height + 3);
1144
if (layout.focus.
Width
% 2 == 0) {
1206
layout.checkBounds.X = (field.X+field.
Width
) - layout.checkBounds.
Width
;
1209
layout.checkBounds.X = field.X + (field.
Width
- layout.checkBounds.
Width
)/2;
1238
layout.checkArea.X = field.X + field.
Width
- checkSizeFull;
1248
layout.checkArea.Width = field.
Width
;
1259
layout.checkArea.Width = field.
Width
;
1381
layout.textBounds.X = Math.Max(Math.Min(layout.textBounds.X, layout.field.X + (layout.field.
Width
- layout.textBounds.
Width
)/2), layout.field.X);
1386
layout.imageBounds.Width = Math.Max(0, Math.Min(maxBounds.
Width
- layout.textBounds.
Width
, layout.imageBounds.
Width
));
1387
layout.textBounds.X = layout.imageBounds.X + layout.imageBounds.
Width
;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (4)
146
if (fullSize.
Width
== checkSize) {
244
cacheCheckImage.Width == fullSize.
Width
&&
257
NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, fullSize.
Width
, fullSize.Height);
258
Bitmap bitmap = new Bitmap(fullSize.
Width
, fullSize.Height);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
45
layout.focus.Width = layout.textBounds.
Width
+ layout.imageBounds.
Width
- 1;
winforms\Managed\System\WinForms\CheckedListBox.cs (6)
703
box.X = bounds.X + bounds.
Width
- idealCheckSize - scaledListItemStartPosition;
723
bounds.
Width
- (idealCheckSize + (scaledListItemStartPosition * 2)),
769
textBounds.
Width
- BORDER_SIZE,
845
e.Bounds.
Width
> 2 * BORDER_SIZE && e.Bounds.Height > 2 * BORDER_SIZE) {
851
bounds.
Width
- BORDER_SIZE,
1674
return new Rectangle(pt.x, pt.y, rect.
Width
, rect.Height);
winforms\Managed\System\WinForms\ComboBox.cs (14)
4619
int width = parentRect.
Width
;
5934
outerBorder = new Rectangle(clientRect.Location, new Size(clientRect.
Width
- 1, clientRect.Height - 1));
5935
innerBorder = new Rectangle(outerBorder.X + 1, outerBorder.Y + 1, outerBorder.
Width
- dropDownButtonWidth - 2, outerBorder.Height - 2);
5936
innerInnerBorder = new Rectangle(innerBorder.X + 1, innerBorder.Y + 1, innerBorder.
Width
- 2, innerBorder.Height - 2);
5952
innerBorder.X = clientRect.
Width
- innerBorder.Right;
5953
innerInnerBorder.X = clientRect.
Width
- innerInnerBorder.Right;
5954
dropDownRect.X = clientRect.
Width
- dropDownRect.Right;
5955
whiteFillRect.X = clientRect.
Width
- whiteFillRect.Right + 1; // since we're filling, we need to move over to the next px.
5996
g.DrawRectangle(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.
Width
+ 1, outerBorder.Height));
6006
g.DrawRectangle(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.
Width
+ 1, outerBorder.Height));
6040
g.DrawRectangle(innerPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.
Width
+ 1, outerBorder.Height));
6065
Point middle = new Point(dropDownRect.Left + dropDownRect.
Width
/ 2, dropDownRect.Top + dropDownRect.Height / 2);
6068
middle.X -= (dropDownRect.
Width
% 2);
6072
middle.X += (dropDownRect.
Width
% 2);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
180
int x = screen.X + (screen.
Width
- r.right + r.left) / 2;
winforms\Managed\System\WinForms\Control.cs (18)
1376
SetBounds(value.X, value.Y, value.
Width
, value.Height, BoundsSpecified.All);
6157
if (targetBounds.
Width
<= 0 || targetBounds.Height <= 0
6167
int width = Math.Min(this.Width, targetBounds.
Width
);
6620
int sw = bounds.
Width
;
6627
int localWidth = bounds.
Width
- adornmentWidth;
7313
NativeMethods.RECT rcArea = NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.
Width
, rc.Height);
7322
NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.
Width
,
9744
e.Graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.
Width
- 1, rectangle.Height - 1);
9806
Rectangle newClipRect = new Rectangle(rectangle.Left + this.Left, rectangle.Top + this.Top, rectangle.
Width
, rectangle.Height);
11061
NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.
Width
, r.Height);
11078
NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.
Width
, r.Height);
11875
width = adjustedBounds.
Width
;
13685
if (!doubleBuffered || (clip.
Width
> 0 && clip.Height > 0)) {
14513
if (sizeProperty != null && !sizeProperty.IsReadOnly && (bounds.
Width
!= this.Width || bounds.Height != this.Height)) {
14536
SetBoundsCore(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, specified);
18270
ioleClientSite.OnPosRectChange(NativeMethods.COMRECT.FromXYWH(bounds.X, bounds.Y, bounds.
Width
, bounds.Height));
18363
adjustRect.right = posRect.
Width
+ posRect.X;
18406
NativeMethods.RECT rcIntersect = NativeMethods.RECT.FromXYWH(intersect.X, intersect.Y, intersect.
Width
, intersect.Height);
winforms\Managed\System\WinForms\ControlPaint.cs (83)
92
if (szCtl.Width > result.
Width
) {
93
result.X = (szCtl.Width - result.
Width
) / 2;
102
float xRatio = (float)bounds.
Width
/ (float)imageSize.Width;
106
result.Width = bounds.
Width
;
123
result.X = (bounds.
Width
- result.
Width
) /2;
482
imageRectangle.X += clipRect.
Width
- imageRectangle.
Width
;
503
g.DrawImage(backgroundImage, imageRect, partOfImageToDraw.X, partOfImageToDraw.Y, partOfImageToDraw.
Width
,
512
g.DrawImage(backgroundImage, imageRect, partOfImageToDraw.X, partOfImageToDraw.Y, partOfImageToDraw.
Width
,
610
topLineRights[i] = bounds.X + bounds.
Width
- rightOffset - 1;
646
bottomLineRights[i] = bounds.X + bounds.
Width
- rightOffset - 1;
845
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1 - i, rightLineTops[i], bounds.X + bounds.
Width
- 1 - i, rightLineBottoms[i]);
853
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1 - i, rightLineTops[i], bounds.X + bounds.
Width
- 1 - i, rightLineBottoms[i]);
861
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1 - i, rightLineTops[i], bounds.X + bounds.
Width
- 1 - i, rightLineBottoms[i]);
870
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1 - i, rightLineTops[i], bounds.X + bounds.
Width
- 1 - i, rightLineBottoms[i]);
881
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1 - i, rightLineTops[i], bounds.X + bounds.
Width
- 1 - i, rightLineBottoms[i]);
896
DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, Border3DStyle.Etched,
906
DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, style,
917
DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, style, sides);
992
bounds.X + bounds.
Width
- 1, bounds.Y);
999
bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1);
1000
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1, bounds.Y,
1001
bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1);
1006
bounds.X + bounds.
Width
- 2, bounds.Y + 1);
1014
bounds.X + bounds.
Width
- 2, bounds.Y + bounds.Height - 2);
1015
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 2, bounds.Y + 1,
1016
bounds.X + bounds.
Width
- 2, bounds.Y + bounds.Height - 2);
1030
bounds.X + bounds.
Width
- 1, bounds.Y);
1041
bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1);
1042
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 1, bounds.Y,
1043
bounds.X + bounds.
Width
- 1, bounds.Y + bounds.Height - 1);
1057
bounds.X + bounds.
Width
- 2, bounds.Y + 1);
1070
bounds.X + bounds.
Width
- 2, bounds.Y + bounds.Height - 2);
1071
graphics.DrawLine(pen, bounds.X + bounds.
Width
- 2, bounds.Y + 1,
1072
bounds.X + bounds.
Width
- 2, bounds.Y + bounds.Height - 2);
1100
graphics.DrawRectangle(pen, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
1112
DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, state);
1129
DrawCaptionButton(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, button, state);
1147
DrawCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, state);
1170
DrawComboButton(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, state);
1194
graphics.FillRectangle(brush, bounds.Left + 1, bounds.Top + 1, bounds.
Width
- 2, bounds.Height - 2);
1202
int midx = bounds.X + bounds.
Width
/2;
1258
if (rectangle.
Width
< 0 || rectangle.Height < 0) {
1263
rectangle.
Width
- 2, rectangle.Height - 2);
1269
if (checkImage == null || checkImage.Width != rectangle.
Width
|| checkImage.Height != rectangle.Height) {
1278
NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, rectangle.
Width
, rectangle.Height);
1279
Bitmap bitmap = new Bitmap(rectangle.
Width
, rectangle.Height);
1304
graphics.DrawRectangle(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.
Width
- 1, offsetRectangle.Height - 1);
1436
Rectangle fillRect = new Rectangle(rectangle.X + 1, rectangle.Y + 1, rectangle.
Width
- 1, rectangle.Height - 1);
1677
graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.
Width
- 1, rectangle.Height - 1);
1679
graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.
Width
- 1, rectangle.Height - 1);
1688
graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.
Width
- 1, rectangle.Height - 1);
1696
DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, glyph);
1706
DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, glyph, foreColor, backColor);
1733
DrawMixedCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, state);
1750
DrawRadioButton(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, state);
1849
DrawScrollButton(graphics, rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, button, state);
1891
DrawSizeGrip(graphics, backColor, bounds.X, bounds.Y, bounds.
Width
, bounds.Height);
2014
SafeNativeMethods.PatBlt(new HandleRef(null, dc), rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height, rop3);
2459
g.DrawLine(pen, bound.X, bound.Y, bound.X + bound.
Width
- 1, bound.Y);
2463
g.DrawLine(SystemPens.ControlDark, bound.X + bound.
Width
- 1, bound.Y, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2464
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2471
bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.
Width
- 1, bound.Height - 1);
2473
g.DrawLine(pen, bound.X, bound.Y, bound.X + bound.
Width
- 1, bound.Y);
2477
g.DrawLine(SystemPens.ControlDark, bound.X + bound.
Width
- 1, bound.Y, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2478
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2482
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.
Width
- 1, bound.Y);
2485
g.DrawLine(pen, bound.X + bound.
Width
- 1, bound.Y, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2486
g.DrawLine(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2496
bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.
Width
- 1, bound.Height - 1);
2497
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.
Width
- 1, bound.Y);
2500
g.DrawLine(pen, bound.X + bound.
Width
- 1, bound.Y, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
2501
g.DrawLine(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.
Width
- 1, bound.Y + bound.Height - 1);
winforms\Managed\System\WinForms\Cursor.cs (3)
193
NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(value.X, value.Y, value.
Width
, value.Height);
438
imageWidth = imageRect.
Width
;
449
targetWidth = targetRect.
Width
;
winforms\Managed\System\WinForms\DataGrid.cs (46)
347
vertScrollBar.Left = ClientRectangle.
Width
- vertScrollBar.Width;
2250
int widthNotVisible = totalWidth - layout.Data.
Width
;
4478
right = new Rectangle(oldClientRectangle.X + oldClientRectangle.
Width
- borderWidth,
4484
oldClientRectangle.
Width
,
4488
if (newClientRectangle.
Width
!= oldClientRectangle.
Width
) {
4490
right = new Rectangle(newClientRectangle.X + newClientRectangle.
Width
- borderWidth,
4500
newClientRectangle.
Width
,
4524
refresh.Width = layout.Inside.
Width
;
4703
Rectangle r = new Rectangle(inside.X, e.Y, inside.
Width
, 3);
4808
int visibleWidth = layout.Data.
Width
;
4855
rightArea.Width = rightArea.
Width
- left;
4898
clip.Width = layout.Data.X + layout.Data.
Width
- leftEdge - 2;
4958
int visibleWidth = this.layout.Data.
Width
;
5515
int visibleWidth = layout.Data.
Width
;
5775
rowExclude.
Width
,
5860
SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.
Width
, r.Height, NativeMethods.PATINVERT);
6205
while (cx < inside.
Width
+ inside.X && col < columnCount) {
6325
inside.
Width
,
6328
rowRect.Width += layout.RowHeaders.
Width
;
6329
rowRect.X -= isRightToLeft() ? 0 : layout.RowHeaders.
Width
;
6452
rowBounds.Width = layout.Data.
Width
;
6656
invalid.Width = layout.RowHeaders.
Width
;
6669
Rectangle inner = new Rectangle(rowRect.X + r.X, rowRect.Y + r.Y, r.
Width
, r.Height);
6751
if (totalWidth > layout.Data.
Width
&& !needHorizScrollbar) {
6779
if (needVertScrollbar && totalWidth > layout.Data.
Width
&& !needHorizScrollbar) {
6818
int widthNotVisible = totalWidth - layout.Data.
Width
;
6826
horizScrollBar.Bounds = new Rectangle(alignToRight ? layout.Inside.X + layout.ResizeBoxRect.
Width
: layout.Inside.X,
6828
layout.Inside.
Width
- layout.ResizeBoxRect.
Width
,
7160
if (cx > boundingRect.
Width
)
7176
textBounds.X = boundingRect.Right - cx - textBounds.
Width
;
7259
int paintedWidth = textBounds.
Width
+ (columnSorted ? textBounds.Height : 0);
7272
if (cx < boundingRect.
Width
) {
7303
g.FillRectangle(br, bounds.X, bounds.Y, bounds.
Width
+ 2, 2);
7305
g.FillRectangle(br, bounds.X, bounds.Bottom - 2, bounds.
Width
+ 2, 2);
7337
if (layout.TopLeftHeader.
Width
> 0) {
7433
headerBounds.Width = layout.RowHeaders.
Width
;
7437
headerBounds.X = rowBounds.Right - headerBounds.
Width
;
7446
rowBounds.X += headerBounds.
Width
;
7447
rowBounds.Width -= headerBounds.
Width
;
8183
rowHdrRect.Width = layout.RowHeaders.
Width
;
8628
NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.
Width
, rowsRect.Height);
8850
underParentRows.X -= isRightToLeft() ? 0 : layout.RowHeaders.
Width
;
8851
underParentRows.Width += layout.RowHeaders.
Width
;
8881
NativeMethods.RECT scrollRECT = NativeMethods.RECT.FromXYWH(underParentRows.X, underParentRows.Y - layout.ParentRows.Height, underParentRows.
Width
, underParentRows.Height + layout.ParentRows.Height);
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (6)
156
return new Rectangle(bounds.X +((bounds.
Width
- idealCheckSize) /2),
158
bounds.
Width
< idealCheckSize ? bounds.
Width
: idealCheckSize,
161
return new Rectangle(Math.Max(0,bounds.X +((bounds.
Width
- idealCheckSize) /2)),
163
bounds.
Width
< idealCheckSize ? bounds.
Width
: idealCheckSize,
winforms\Managed\System\WinForms\DataGridCaption.cs (6)
473
int backButtonArea = backButtonVisible ? backButtonRect.
Width
+ xOffset + buttonToText : 0;
476
int textWidthLeft = bounds.
Width
- xOffset - backButtonArea - downButtonArea;
488
textRect.X = bounds.Right - textRect.
Width
;
538
g.DrawImage(b, bounds, 0, 0, bounds.
Width
, bounds.Height,GraphicsUnit.Pixel, attr);
559
if (textBounds.
Width
<= 0 || textBounds.Height <= 0)
563
g.DrawRectangle(this.textBorderPen, textBounds.X, textBounds.Y, textBounds.
Width
- 1, textBounds.Height - 1);
winforms\Managed\System\WinForms\DataGridParentRows.cs (24)
152
ret.Width = layout.data.
Width
;
327
Rectangle r = new Rectangle(rect.X, rect.Y, rect.
Width
+ borderWidth, rect.Height + borderWidth);
663
if (totalWidth > bounds.
Width
) {
665
layout.data = new Rectangle(layout.leftArrow.Right, bounds.Y, bounds.
Width
- 30, bounds.Height);
774
int bmpX = bounds.X + (bounds.
Width
- b.Width) / 2;
784
g.DrawImage(b, bmpRect, 0, 0, bmpRect.
Width
, bmpRect.Height,GraphicsUnit.Pixel, attr);
796
g.DrawLine(Pens.Black, bounds.X, bounds.Y, bounds.X + bounds.
Width
, bounds.Y); // the top
797
g.DrawLine(Pens.White, bounds.X + bounds.
Width
, bounds.Y, bounds.X + bounds.
Width
, bounds.Y + bounds.Height); // the right side
798
g.DrawLine(Pens.White, bounds.X + bounds.
Width
, bounds.Y + bounds.Height, bounds.X, bounds.Y + bounds.Height); // the right side
880
paintBounds.Width = Math.Min(paintBounds.
Width
, tableNameBoxWidth);
884
paintedWidth += paintBounds.
Width
;
888
if (paintedWidth >= bounds.
Width
)
889
return bounds.
Width
; // we painted everything
896
if (paintedWidth < bounds.
Width
) {
898
paintBounds.Width = bounds.
Width
- paintedWidth;
913
if (cx >= bounds.
Width
)
924
paintBounds.Width = Math.Min(bounds.
Width
- cx, colsNameWidths[i]);
930
cx += paintBounds.
Width
;
934
if (cx >= bounds.
Width
)
943
paintBounds.Width = Math.Min(bounds.
Width
- cx, colsDataWidths[i]);
951
cx += paintBounds.
Width
;
970
paintBounds.Width = Math.Min(bounds.
Width
- cx, 3);
1011
return textBounds.
Width
;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (20)
295
outline.X = MirrorRectangle(outline.X, outline.
Width
, insideRowHeaders, alignToRight);
544
trueRowBounds.
Width
,
576
bounds.Width -= errRect.
Width
+ xOffset;
578
bounds.X += errRect.
Width
+ xOffset;
606
bounds.
Width
- (paintPlusMinus ? expandoBoxWidth : 0),
613
bounds.
Width
- (paintPlusMinus ? expandoBoxWidth : 0),
619
int expandoBoxX = MirrorRectangle(bounds.X + rowHeaderBounds.
Width
, expandoBoxWidth, bounds, alignToRight);
644
relRect.X = alignToRight ? bounds.Right - relRect.
Width
: bounds.X;
646
int paintedWidth = Math.Max(dataWidth, relRect.
Width
);
662
g.DrawRectangle(SystemPens.ControlText, relRect.X, relRect.Y, relRect.
Width
- 1, relRect.Height - 1);
668
g.FillRectangle(GetBackBrush(), relRect.X, relRect.Y + cy, relRect.
Width
, relRect.Height - cy);
674
if (paintedWidth < bounds.
Width
) {
683
bounds.
Width
- paintedWidth - bWidth + 1, // + 1 cause the relationship rectangle was deflated
706
g.FillRectangle(GetBackBrush(), bounds.X, bounds.Y, bounds.
Width
, System.Windows.Forms.DataGridTableStyle.relationshipSpacing);
710
bounds.
Width
,
735
textBounds.Width = bounds.
Width
;
760
g.DrawRectangle(drawPen, outline.X, outline.Y, outline.
Width
- 1, outline.Height - 1);
765
outline.X + indent, outline.Y + outline.
Width
/ 2,
766
outline.Right - indent - 1, outline.Y + outline.
Width
/2); // -1 on the y coordinate
806
return rowHeader.X - relRect.
Width
;
winforms\Managed\System\WinForms\DataGridRow.cs (13)
452
if (dataWidth < bounds.
Width
) {
456
bounds.
Width
- bottomBorder.
Width
,
489
if (cx > bounds.
Width
)
499
cellBounds.X = bounds.Right - cx - cellBounds.
Width
;
522
cx += cellBounds.
Width
+ bWidth;
526
if (cx < bounds.
Width
) {
530
bounds.
Width
- cx,
572
g.DrawImage(bmp, bmpRect, 0, 0, bmpRect.
Width
, bmpRect.Height,GraphicsUnit.Pixel, attr);
599
bounds.X += PaintIcon(g, bounds, true, alignToRight, bmp).
Width
+ xOffset;
607
bounds.X += PaintIcon(g, bounds, RowNumber == this.DataGrid.CurrentCell.RowNumber, alignToRight, bmp).
Width
+ xOffset;
614
bounds.X += PaintIcon(g, bounds, RowNumber == this.DataGrid.CurrentCell.RowNumber, alignToRight, bmp).
Width
+ xOffset;
645
bounds.X += errRect.
Width
+ xOffset;
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
71
toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.
Width
, iconBounds.Height);
winforms\Managed\System\WinForms\DataGridView.cs (4)
512
this.vertScrollBar.Left = this.ClientRectangle.
Width
- vertScrollBar.Width;
3112
int displayWidth = this.layout.Data.
Width
;
3388
int widthNotVisible = this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - this.layout.Data.
Width
;
3514
else if (value > 0 && (this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - this.layout.Data.
Width
) <= 0)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
340
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
355
marginWidths = rectThemeMargins.X + rectThemeMargins.
Width
;
734
if (valBounds.Height > 0 && valBounds.
Width
> 0)
757
if (valBounds.Height > 0 && valBounds.
Width
> 0 && (paint || computeContentBounds))
929
Debug.Assert(valBounds.Height <= 0 || valBounds.
Width
<= 0);
938
valBounds.
Width
> 2 * SystemInformation.Border3DSize.Width + 1 &&
1025
if (valBounds.
Width
> 0 && valBounds.Height > 0)
winforms\Managed\System\WinForms\DataGridViewCell.cs (18)
1249
if (cellValueBounds.
Width
>= DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth &&
3153
if (contentBounds.
Width
> 0)
3159
contentBounds.
Width
,
3573
if (dividerThickness > bounds.
Width
)
3575
dividerThickness = bounds.
Width
;
3602
if (bounds.
Width
<= 0)
3630
graphics.FillRectangle(this.DataGridView.GetCachedBrush(dividerHeightColor), bounds.X, bounds.Bottom - dividerThickness, bounds.
Width
, dividerThickness);
4301
cellValueBounds.
Width
>= DATAGRIDVIEWCELL_iconMarginWidth*2+iconsWidth &&
4324
cellValueBounds.
Width
>= DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth &&
4328
if (iconBounds.
Width
>= DATAGRIDVIEWCELL_iconMarginWidth && iconBounds.Height >= iconsHeight)
4373
rectPadding.Width = bounds.
Width
- cellStyle.Padding.Horizontal;
4512
this.DataGridView.EditingControl.Size = new Size(editingControlBounds.
Width
, editingControlBounds.Height);
4549
int xEditingPanel, wEditingPanel = cellBounds.
Width
;
4565
if (cellClip.Right <= cellBounds.Right - borderAndPaddingWidths.
Width
)
4571
wEditingPanel -= borderAndPaddingWidths.
Width
;
4575
wEditingControl = cellBounds.
Width
- borderAndPaddingWidths.X - borderAndPaddingWidths.
Width
;
5155
rowRect.Width = columnRect.
Width
;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (7)
762
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
1299
if (valBounds.
Width
>= checkBoxSize.Width && valBounds.Height >= checkBoxSize.Height && (paint || computeContentBounds))
1309
checkBoxX = valBounds.Left + (valBounds.
Width
- checkBoxSize.Width) / 2;
1423
if (checkImage == null || checkImage.Width != fullSize.
Width
|| checkImage.Height != fullSize.Height)
1433
NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, fullSize.
Width
, fullSize.Height);
1434
Bitmap bitmap = new Bitmap(fullSize.
Width
, fullSize.Height);
1621
Debug.Assert(valBounds.
Width
< checkBoxSize.Width || valBounds.Height < checkBoxSize.Height, "the bounds are empty");
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (17)
538
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
703
preferredSize.Width += rectThemeMargins.X + rectThemeMargins.
Width
;
821
if (paint && DataGridViewCell.PaintBackground(paintParts) && backgroundBounds.
Width
> 0 && backgroundBounds.Height > 0)
859
bmFlipXPThemes.Width < backgroundBounds.
Width
|| bmFlipXPThemes.Width > 2 * backgroundBounds.
Width
||
862
bmFlipXPThemes = this.FlipXPThemesBitmap = new Bitmap(backgroundBounds.
Width
, backgroundBounds.Height);
865
DataGridViewColumnHeaderCellRenderer.DrawHeader(gFlip, new Rectangle(0, 0, backgroundBounds.
Width
, backgroundBounds.Height), state);
867
g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.Width - backgroundBounds.
Width
, 0, backgroundBounds.
Width
, backgroundBounds.Height), GraphicsUnit.Pixel);
880
valBounds.X += rectThemeMargins.
Width
;
881
valBounds.Width -= rectThemeMargins.X + rectThemeMargins.
Width
;
886
valBounds.Width -= rectThemeMargins.X + rectThemeMargins.
Width
;
891
if (paint && DataGridViewCell.PaintBackground(paintParts) && backgroundBounds.
Width
> 0 && backgroundBounds.Height > 0)
923
if (valBounds.
Width
- DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginLeft - DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginRight > 0 &&
943
int width = valBounds.
Width
-
1007
valBounds.
Width
>= sortGlyphWidth + 2 * sortGlyphHorizontalMargin &&
1011
sortGlyphLocation = new Point(valBounds.Left + (valBounds.
Width
-sortGlyphWidth)/2,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (31)
755
Size adjustedSize = new Size(size.Width - borderAndPaddingWidths.X - borderAndPaddingWidths.
Width
,
780
if (x >= size.Width - borderAndPaddingWidths.
Width
- dropWidth - 1 &&
781
x <= size.Width - borderAndPaddingWidths.
Width
- 1)
1372
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
2169
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.
Width
> 0 && valBounds.Height > 0)
2188
if (paint && valBounds.
Width
> 0 && valBounds.Height > 0)
2194
g.FillRectangle(br, valBounds.Left, valBounds.Top, valBounds.
Width
, valBounds.Height);
2208
DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.
Width
> 2 && valBounds.Height > 2)
2210
g.FillRectangle(br, valBounds.Left + 1, valBounds.Top + 1, valBounds.
Width
- 2, valBounds.Height - 2);
2217
g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.
Width
-1, valBounds.Height-1));
2221
g.FillRectangle(br, valBounds.Left, valBounds.Top, valBounds.
Width
, valBounds.Height);
2226
int dropWidth = Math.Min(SystemInformation.HorizontalScrollBarThumbWidth, valBounds.
Width
- 2 * DATAGRIDVIEWCOMBOBOXCELL_margin - 1);
2368
dropRect.X + dropRect.
Width
- 1, dropRect.Y);
2376
valBounds.X + valBounds.
Width
- 1, valBounds.Y + valBounds.Height - 1);
2377
g.DrawLine(pen, valBounds.X + valBounds.
Width
- 1, valBounds.Y,
2378
valBounds.X + valBounds.
Width
- 1, valBounds.Y + valBounds.Height - 1);
2390
dropRect.X + dropRect.
Width
- 1, dropRect.Y + dropRect.Height - 1);
2391
g.DrawLine(pen, dropRect.X + dropRect.
Width
- 1, dropRect.Y,
2392
dropRect.X + dropRect.
Width
- 1, dropRect.Y + dropRect.Height - 1);
2398
valBounds.X + valBounds.
Width
- 2, valBounds.Y);
2414
dropRect.X + dropRect.
Width
- 2, dropRect.Y + 1);
2428
dropRect.X + dropRect.
Width
- 2, dropRect.Y + dropRect.Height - 2);
2429
g.DrawLine(pen, dropRect.X + dropRect.
Width
- 2, dropRect.Y + 1,
2430
dropRect.X + dropRect.
Width
- 2, dropRect.Y + dropRect.Height - 2);
2441
Point middle = new Point(dropRect.Left + dropRect.
Width
/ 2, dropRect.Top + dropRect.Height / 2);
2443
middle.X += (dropRect.
Width
% 2);
2462
Point middle = new Point(dropRect.Left + (dropRect.
Width
- 1) / 2,
2465
middle.X += ((dropRect.
Width
+ 1) % 2);
2528
if (textBounds.
Width
> 1 && textBounds.Height > 1)
2557
if (focusBounds.
Width
> 0 && focusBounds.Height > 0)
2596
if (textBounds.
Width
> 0 && textBounds.Height > 0)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
493
rectThemeMargins.Y + rectThemeMargins.
Width
+ rectThemeMargins.Height == 0)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (15)
476
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
647
if (imgWidth * bounds.Height < imgHeight * bounds.
Width
)
655
imgBounds = new Rectangle(bounds.X, bounds.Y, bounds.
Width
, Decimal.ToInt32((decimal)imgHeight * bounds.
Width
/ imgWidth));
671
imgBounds.X = bounds.Right - imgBounds.
Width
;
677
imgBounds.X = bounds.Right - imgBounds.
Width
;
683
imgBounds.X = bounds.Right - imgBounds.
Width
;
695
imgBounds.X = bounds.Right - imgBounds.
Width
;
701
imgBounds.X = bounds.Right - imgBounds.
Width
;
707
imgBounds.X = bounds.Right - imgBounds.
Width
;
717
imgBounds.X = bounds.X + (bounds.
Width
- imgBounds.
Width
) / 2;
823
if (valBounds.
Width
> 0 && valBounds.Height > 0 && (paint || computeContentBounds))
843
if (imgBounds.
Width
> 0 && imgBounds.Height > 0)
973
Debug.Assert(valBounds.Height <= 0 || valBounds.
Width
<= 0);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (4)
663
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
1061
if (valBounds.
Width
> 0 && valBounds.Height > 0)
1117
errorBounds.
Width
> 0 &&
1143
valBounds.
Width
> 0 &&
winforms\Managed\System\WinForms\DataGridViewMethods.cs (104)
555
if (this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) > this.layout.Data.
Width
)
563
int availableWidth = this.layout.Data.
Width
; // Width available for auto-filled columns
608
int maximumPossibleWidth = this.layout.Data.
Width
- imposedWidthSum;
756
int maximumPossibleWidth = this.layout.Data.
Width
- imposedWidthSum;
932
Debug.Assert(this.layout.Data.
Width
== this.layout.Inside.
Width
- this.layout.RowHeaders.
Width
- (this.SingleVerticalBorderAdded ? 1 : 0));
933
int availableWidth = this.layout.Data.
Width
- imposedWidthSum;
948
SystemInformation.VerticalScrollBarWidth <= this.layout.Data.
Width
)
1741
if (this.layout.TopLeftHeader.
Width
> 0)
1745
preferredHeight = this.TopLeftHeaderCell.GetPreferredHeight(-1, this.layout.TopLeftHeader.
Width
);
1814
if (this.layout.TopLeftHeader.
Width
> 0)
1818
preferredHeight = this.TopLeftHeaderCell.GetPreferredHeight(-1, this.layout.TopLeftHeader.
Width
);
2014
if (this.layout.TopLeftHeader.
Width
> 0)
2187
if (this.layout.TopLeftHeader.
Width
> 0)
2462
if (this.layout.TopLeftHeader.
Width
> 0)
2492
cursorClip.X += cursorClip.
Width
- frozenWidth;
2494
cursorClip.Width = Math.Min(frozenWidth, this.layout.Data.
Width
);
2503
else if (this.layout.Data.
Width
> frozenWidth + scrollingWidth)
2505
cursorClip.X += this.layout.Data.
Width
- frozenWidth - scrollingWidth;
2507
cursorClip.Width = Math.Min(scrollingWidth, this.layout.Data.
Width
);
2776
if (this.layout.TopLeftHeader.
Width
> 0)
3016
if (this.layout.TopLeftHeader.
Width
> 0)
3027
r.X = Math.Min(r.X, inside.Right - r.
Width
);
3032
r.X = Math.Min(inside.Right - r.
Width
, r.X);
3057
Rectangle r = new Rectangle(inside.X, mouseY + this.mouseBarOffset - 1, inside.
Width
, 3);
4188
if (this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) >= this.layout.Data.
Width
)
4332
if (this.normalClientRectangle.
Width
> 0 || this.normalClientRectangle.Height > 0)
4347
if (inside.
Width
< 0)
4372
rowHeaders.Width = Math.Min(this.rowHeadersWidth, rowHeaders.
Width
);
4375
rowHeaders.X += insideLeft.
Width
- rowHeaders.
Width
;
4379
insideLeft.X += rowHeaders.
Width
;
4381
insideLeft.Width -= rowHeaders.
Width
;
4382
Debug.Assert(insideLeft.
Width
>= 0);
4390
topLeft.Width = Math.Min(this.rowHeadersWidth, topLeft.
Width
);
4391
colHeaders.Width -= topLeft.
Width
;
4394
topLeft.X += insideLeft.
Width
;
4398
colHeaders.X += topLeft.
Width
;
4400
Debug.Assert(colHeaders.
Width
>= 0);
4422
if (insideLeft.
Width
> 0)
4442
Debug.Assert(newLayout.Data.
Width
>= 0);
4558
int displayWidth = this.layout.Data.
Width
, cx = 0;
5531
int cxMax = this.layout.Data.
Width
, cx = 0;
5771
SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.
Width
, DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT);
5772
SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y + r.Height - DATAGRIDVIEW_shadowEdgeThickness, r.
Width
, DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT);
5774
SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X + r.
Width
- DATAGRIDVIEW_shadowEdgeThickness, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.Height - 2 * DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT);
5791
SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.
Width
, r.Height, NativeMethods.PATINVERT);
8646
int emptyBackgroundWidth = Math.Max(0, this.layout.Data.
Width
- this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible));
9183
data.
Width
,
9187
rowRect.Width += this.layout.RowHeaders.
Width
;
9190
rowRect.X -= this.layout.RowHeaders.
Width
;
10193
Invalidate(new Rectangle(data.X, top, data.
Width
, bottom - top));
10349
totalVisibleWidth > this.layout.Data.
Width
&& totalVisibleFrozenWidth < this.layout.Data.
Width
&&
10356
if (totalVisibleWidth - this.layout.Data.
Width
<= vertScrollBarWidth ||
10357
this.layout.Data.
Width
- totalVisibleFrozenWidth <= vertScrollBarWidth)
10366
needHorizScrollbar = (totalVisibleFrozenWidth < this.layout.Data.
Width
- vertScrollBarWidth);
10394
vertScrollBarWidth <= this.layout.Data.
Width
)
10397
Debug.Assert(this.layout.Data.
Width
>= 0);
10405
Debug.Assert(this.layout.ColumnHeaders.
Width
>= 0);
10420
totalVisibleWidth > this.layout.Data.
Width
&& totalVisibleFrozenWidth < this.layout.Data.
Width
&&
10446
vertScrollBarWidth <= this.layout.Data.
Width
)
10449
Debug.Assert(this.layout.Data.
Width
>= 0);
10457
Debug.Assert(this.layout.ColumnHeaders.
Width
>= 0);
10487
int widthNotVisible = totalVisibleWidth - this.layout.Data.
Width
;
10496
rightToLeftInternal ? this.layout.Inside.X + this.layout.ResizeBoxRect.
Width
: this.layout.Inside.X,
10498
this.layout.Inside.
Width
- this.layout.ResizeBoxRect.
Width
,
14960
if (rightArea.
Width
> 0 && rightArea.Height > 0)
14972
if (rightArea.
Width
> 0 && rightArea.Height > 0)
17276
edge.X += rect.
Width
- 1;
17880
right = new Rectangle(oldClientRectangle.X + oldClientRectangle.
Width
- borderWidth,
17886
oldClientRectangle.
Width
,
17899
if (newClientRectangle.
Width
!= oldClientRectangle.
Width
)
17902
right = new Rectangle(newClientRectangle.X + newClientRectangle.
Width
- borderWidth,
17913
newClientRectangle.
Width
,
17921
right = new Rectangle(oldGridFocusRectangle.X + oldGridFocusRectangle.
Width
- 1,
17929
oldGridFocusRectangle.
Width
,
19784
if (rcBelowRows.
Width
> 0 && rcBelowRows.Height > 0)
19799
rcNextRows.X += this.layout.RowHeaders.
Width
;
19801
rcNextRows.Width -= this.layout.RowHeaders.
Width
;
19822
if (rcNextRows.
Width
> 0 && rcNextRows.Height > 0)
19839
Rectangle edge = new Rectangle(0, 0, bounds.
Width
, borderWidth);
19856
edge.X = bounds.
Width
- borderWidth;
19869
g.DrawRectangle(pen, new Rectangle(0, 0, bounds.
Width
- 1, bounds.Height - 1));
19879
g.DrawRectangle(pen, new Rectangle(0, 0, bounds.
Width
- 1, bounds.Height - 1));
19912
Debug.Assert(cellBounds.
Width
> 0);
19915
cellBounds.X = bandBounds.Right - cx - cellBounds.
Width
;
19945
cx += cellBounds.
Width
;
19946
if (cx >= bandBounds.
Width
)
19963
if (this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0 && cx < scrollingBounds.
Width
)
19989
Debug.Assert(cellBounds.
Width
> 0);
19992
cellBounds.X = scrollingBounds.Right - cx - cellBounds.
Width
;
20018
cx += cellBounds.
Width
;
20019
if (cx >= scrollingBounds.
Width
)
20046
if (this.layout.TopLeftHeader.
Width
> 0 &&
20353
if (editingZone.
Width
== 0 || editingZone.Height == 0)
20378
editingZone.Width = Math.Max(0, editingZone.
Width
- totalVisibleFrozenWidth);
20387
if (cellClip.
Width
== 0 || cellClip.Height == 0)
26470
NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.
Width
, rowsRect.Height);
26476
rowsRect.Width = this.layout.RowHeaders.
Width
;
winforms\Managed\System\WinForms\DataGridViewRow.cs (11)
1624
Debug.Assert(cellBounds.
Width
> 0);
1627
cellBounds.X = rowBounds.Right - cx - cellBounds.
Width
;
1664
cx += cellBounds.
Width
;
1665
if (cx >= rowBounds.
Width
)
1677
if (cx < dataBounds.
Width
)
1711
Debug.Assert(cellBounds.
Width
> 0);
1714
cellBounds.X = dataBounds.Right - cx - cellBounds.
Width
;
1751
cx += cellBounds.
Width
;
1752
if (cx >= dataBounds.
Width
)
1799
Debug.Assert(cellBounds.
Width
> 0);
1802
cellBounds.X = rowBounds.Right - cellBounds.
Width
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (17)
665
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
677
borderAndPaddingHeights += rectThemeMargins.
Width
;
809
if (backgroundBounds.
Width
> 0 && backgroundBounds.Height > 0)
834
using (Bitmap bmFlipXPThemes = new Bitmap(backgroundBounds.Height, backgroundBounds.
Width
)) {
836
DataGridViewRowHeaderCellRenderer.DrawHeader(gFlip, new Rectangle(0, 0, backgroundBounds.Height, backgroundBounds.
Width
), state);
841
new Rectangle(0, 0, backgroundBounds.
Width
, backgroundBounds.Height),
857
valBounds.Height -= rectThemeMargins.X + rectThemeMargins.
Width
;
864
if (valBounds.
Width
> 0 && valBounds.Height > 0)
890
if (valBounds.
Width
> 0 && valBounds.Height > 0)
897
if (valBounds.
Width
>= iconsWidth +
964
Debug.Assert(valBounds.
Width
>= 0);
972
if (valBounds.
Width
> 0 && valBounds.Height > 0)
975
if (this.DataGridView.ShowRowErrors && valBounds.
Width
> iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth)
978
Size maxBounds = new Size(valBounds.
Width
- iconsWidth - 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth, valBounds.Height);
1025
if (errorBounds.
Width
>= 3 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth +
1045
if (valBounds.
Width
>= iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth &&
1107
if (errorBounds.
Width
>= 3 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth +
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (11)
196
int originalWidth = editingControlBounds.
Width
;
208
editingControlBounds.Width = Math.Max(0, editingControlBounds.
Width
- DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetLeft - 2);
213
editingControlBounds.Width = Math.Max(0, editingControlBounds.
Width
- DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetLeft - 1);
221
editingControlBounds.Width = Math.Max(0, editingControlBounds.
Width
- 3);
231
editingControlBounds.Width = Math.Max(0, editingControlBounds.
Width
- DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetRight);
236
editingControlBounds.Width = Math.Max(0, editingControlBounds.
Width
- DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetRight - 1);
438
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
717
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.
Width
> 0 && valBounds.Height > 0)
742
valBounds.
Width
> 0 &&
759
if (valBounds.
Width
> 0 && valBounds.Height > 0)
825
this.DataGridView.EditingControl.Size = new Size(editingControlBounds.
Width
, editingControlBounds.Height);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (2)
184
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.
Width
+ cellStyle.Padding.Horizontal;
339
if (valBounds.
Width
> 0 &&
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (5)
324
if (sizeRequired.Width > cellBounds.
Width
)
330
Size sizeCell = new Size(cellBounds.
Width
, cellBounds.Height);
394
ptTextLocation.X = cellBounds.X + (cellBounds.
Width
- sizeText.Width) / 2;
409
ptTextLocation.X = cellBounds.X + (cellBounds.
Width
- sizeText.Width) / 2;
424
ptTextLocation.X = cellBounds.X + (cellBounds.
Width
- sizeText.Width) / 2;
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1193
int width = CommonProperties.GetSpecifiedBounds(this).
Width
;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
272
pageHostBounds.
Width
, STRIP_HEIGHT);
275
Rectangle pageBounds = new Rectangle(0, 0, pageHostBounds.
Width
, pageHostBounds.Height);
284
Size size = new Size(bounds.
Width
+ 3 * (BUTTON_PAD + xFrame) + selectorWidth,
292
bounds.X = bounds.
Width
+ bounds.X - BUTTON_WIDTH;
winforms\Managed\System\WinForms\ErrorProvider.cs (6)
998
windowBounds.
Width
,
1068
CreateMirrorDC(hdc, windowBounds.
Width
- 1);
1074
SafeNativeMethods.DrawIconEx(new HandleRef(this, mirrordc.Hdc), bounds.X - windowBounds.X, bounds.Y - windowBounds.Y, new HandleRef(provider.Region, provider.Region.IconHandle), bounds.
Width
, bounds.Height, 0, NativeMethods.NullHandleRef, NativeMethods.DI_NORMAL);
1226
toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.
Width
, iconBounds.Height);
1246
CreateMirrorDC(dc.Hdc, windowBounds.
Width
);
1279
windowBounds.
Width
, windowBounds.Height, NativeMethods.SWP_NOACTIVATE);
winforms\Managed\System\WinForms\Form.cs (13)
1174
SetDesktopBounds(value.X, value.Y, value.
Width
, value.Height);
2206
if (restoreBounds.
Width
== -1
3442
if (correctClientSize.Width != currentClient.
Width
) {
4023
cp.X = Math.Max(clientRect.X,clientRect.X + (clientRect.
Width
- cp.Width)/2);
4039
cp.X = Math.Max(screenRect.X,screenRect.X + (screenRect.
Width
- cp.Width)/2);
4463
else if (p.X + s.Width > screenRect.X + screenRect.
Width
)
4464
p.X = screenRect.X + screenRect.
Width
- s.Width;
4507
p.X = Math.Max(screenRect.X,screenRect.X + (screenRect.
Width
- Width)/2);
5685
formStateEx[FormStateExWindowBoundsWidthIsClientSize]==1 ? restoredSize.Width : restoredWindowBounds.
Width
,
5890
if ((specified & BoundsSpecified.Width) != 0 || restoreBounds.
Width
== -1)
5939
base.SetBoundsCore(adjustedBounds.X, adjustedBounds.Y, adjustedBounds.
Width
, adjustedBounds.Height, BoundsSpecified.All);
7219
mmi.ptMaxSize.x = maximizedBounds.
Width
;
7858
toolInfo.rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.
Width
, r.Height);
winforms\Managed\System\WinForms\GroupBox.cs (3)
576
textSize = Size.Ceiling(graphics.MeasureString(Text, Font, textRectangle.
Width
, format));
602
textSize = wg.MeasureText(Text, wfont, new Size(textRectangle.
Width
, int.MaxValue), flags );
618
textLeft += textRectangle.
Width
- textSize.Width;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (25)
171
Size measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new Size(textBounds.
Width
, textBounds.Height), flags);
176
textBounds.X = bounds.Right - textBounds.
Width
- boxHeaderWidth + 1; // +1 to account for the margin built in the MeasureText result
195
clipMiddle.Width = Math.Max(0, textBounds.
Width
- 3); // -3 to account for the margin built in the MeasureText result
199
clipMiddle.X = clipLeft.Left - clipMiddle.
Width
;
233
g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.
Width
- 1, bounds.Height - 1);
234
g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.
Width
- 1, bounds.Height - 2);
237
g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.
Width
- 1, bounds.Top + 1);
238
g.DrawLine(dark, bounds.Left, bounds.Top, bounds.
Width
- 2, bounds.Top);
241
g.DrawLine(light, bounds.
Width
- 1, bounds.Top, bounds.
Width
- 1, bounds.Height - 1);
242
g.DrawLine(dark, bounds.
Width
- 2, bounds.Top, bounds.
Width
- 2, bounds.Height - 2);
264
Size measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new Size(textBounds.
Width
, textBounds.Height), flags);
269
textBounds.X = bounds.Right - textBounds.
Width
- textOffset;
278
if (textBounds.
Width
> 0)
291
g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.
Width
, bounds.Height - 1);
292
g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.
Width
- 1, bounds.Height - 2);
299
g.DrawLine(light, textBounds.X + textBounds.
Width
+ 1, boxTop, bounds.
Width
- 1, boxTop);
300
g.DrawLine(dark, textBounds.X + textBounds.
Width
+ 2, boxTop - 1, bounds.
Width
- 2, boxTop - 1);
303
g.DrawLine(light, bounds.
Width
- 1, boxTop, bounds.
Width
- 1, bounds.Height - 1);
304
g.DrawLine(dark, bounds.
Width
- 2, boxTop - 1, bounds.
Width
- 2, bounds.Height - 2);
winforms\Managed\System\WinForms\HScrollProperties.cs (1)
35
return ParentControl.ClientRectangle.
Width
;
winforms\Managed\System\WinForms\Label.cs (4)
1093
xLoc = (r.X+r.
Width
- 4)-pointImageSize.Width;
1096
xLoc = r.X + (r.
Width
- pointImageSize.Width)/2;
1538
Size preferredSize = GetPreferredSize(new Size(clientRect.
Width
, clientRect.Height));
1539
showToolTip = (clientRect.
Width
< preferredSize.Width || clientRect.Height < preferredSize.Height);
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
214
bounds.Width = Math.Min(bounds.
Width
, value.Width);
236
bounds.Width = Math.Max(bounds.
Width
, value.Width);
281
bool wChangedButNotSpecified = ((specified & BoundsSpecified.Width) == BoundsSpecified.None) & width != originalBounds.
Width
;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (23)
42
proposedConstraints.Width = bounds.
Width
;
58
if(bounds.
Width
< prefSize.Width || bounds.Height < prefSize.Height) {
78
Debug.Assert((CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.
Width
),
83
location.X -= newSize.Width - oldBounds.
Width
;
152
right += displayRect.
Width
;
156
left += displayRect.
Width
;
161
right += (displayRect.
Width
/ 2);
162
left += (displayRect.
Width
/ 2);
193
if (right < left || cachedBounds.
Width
!= element.Bounds.
Width
|| cachedBounds.X != element.Bounds.X) {
197
right = left + Math.Max(element.Bounds.
Width
, cachedBounds.
Width
) + Math.Abs(right);
234
if (CommonProperties.GetAutoSize(container) && ((displayRectangle.
Width
== 0) || (displayRectangle.Height == 0))) {
305
remainingBounds.X += element.Bounds.
Width
;
306
remainingBounds.Width -= element.Bounds.
Width
;
316
remainingBounds.Width -= element.Bounds.
Width
;
350
Math.Max(0, newElementBounds.
Width
- remainingBounds.
Width
),
570
int parentWidth = parentDisplayRect.
Width
;
586
anchorInfo.Left = oldAnchorInfo.Right - bounds.
Width
; // control might have been resized, update Left anchor
735
if ((displayRectangle.
Width
== 0) || (displayRectangle.Height == 0)) {
850
if (anchorDest.
Width
< 0) {
851
prefSize.Width = Math.Max(prefSize.Width, elementSpace.Right + anchorDest.
Width
);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
119
Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.
Width
, displayRect.Height - layoutSize.Height);
190
elementConstraints.Width = rowBounds.
Width
- rowSize.Width - elementProxy.Margin.Size.Width;
420
newBounds.X = DisplayRect.Right - bounds.X - bounds.
Width
+ ElementProxy.Margin.Left - ElementProxy.Margin.Right;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (15)
212
if (rect1.X <= rect2.X && rect1.X + rect1.
Width
>= rect2.X + rect2.
Width
) {
216
if (rect2.X <= rect1.X && rect2.X + rect2.
Width
>= rect1.X + rect1.
Width
) {
227
if (rect1.Y <= rect2.Y && rect1.Y + rect1.
Width
>= rect2.Y + rect2.
Width
) {
231
if (rect2.Y <= rect1.Y && rect2.Y + rect2.
Width
>= rect1.Y + rect1.
Width
) {
261
withinThis.X += withinThis.
Width
- alignThis.Width;
264
withinThis.X += (withinThis.
Width
- alignThis.Width) / 2;
273
withinThis.X += withinThis.
Width
- alignThis.Width;
276
withinThis.X += (withinThis.
Width
- alignThis.Width) / 2;
425
return (rectangle.
Width
== 0 || rectangle.Height == 0);
445
region1.X += bounds.
Width
- specifiedContent.Width;
523
bounds.X = withinBounds.
Width
- bounds.Right;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
1229
cellBounds.Width = Math.Max(cellBounds.
Width
, 1);
1238
elementBounds.Width = Math.Min(cellBounds.
Width
, elementBounds.
Width
);
winforms\Managed\System\WinForms\LinkLabel.cs (10)
508
xLoc = clientRect.Right - textRect.
Width
;
510
xLoc = (clientRect.
Width
- textRect.
Width
) / 2;
524
if (textRect.
Width
> clientRect.
Width
) {
526
width = clientRect.
Width
;
528
width = textRect.
Width
;
678
Size clientSize = new Size(clientRectWithPadding.
Width
, clientRectWithPadding.Height);
1145
Size preferredSize = GetPreferredSize(new Size(clientRect.
Width
, clientRect.Height));
1146
showToolTip = (clientRect.
Width
< preferredSize.Width || clientRect.Height < preferredSize.Height);
winforms\Managed\System\WinForms\ListBox.cs (2)
2333
bounds.Width = Math.Max(ColumnWidth, bounds.
Width
);
2336
bounds.Width = Math.Max(MaxItemWidth, bounds.
Width
);
winforms\Managed\System\WinForms\MDIClient.cs (3)
214
int sw = (int)Math.Round((bounds.X + bounds.
Width
) * dx - sx);
298
rgn1 = SafeNativeMethods.CreateRectRgn(0, 0, bounds.
Width
, bounds.Height);
301
bounds.
Width
- rect.right, bounds.Height - rect.bottom);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1959
if (width != oldBounds.
Width
) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
6475
this.width = r.
Width
;
winforms\Managed\System\WinForms\PictureBox.cs (4)
455
result.X += (result.
Width
- image.Width) / 2;
462
float ratio = Math.Min((float)ClientRectangle.
Width
/ (float)imageSize.Width, (float)ClientRectangle.Height / (float)imageSize.Height);
465
result.X = (ClientRectangle.
Width
- result.
Width
) /2;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
749
NativeMethods.RECT scroll = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.
Width
, rect.Height);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1734
Rectangle rect = new Rectangle (0, 0 , item.Bounds.
Width
- 1, item.Bounds.Height - 1);
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
2346
if (rc.
Width
< rc.Height) {
2347
for (int i = 0; i < rc.
Width
; i++) {
2353
ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y+i), new Point(rc.X+rc.
Width
, rc.Y+i), ctlDrawTo.BackColor);
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (2)
229
g.DrawLine(topLinePen, rect.X - 1, rect.Y - 1, rect.
Width
+ 2, rect.Y - 1);
240
g.DrawLine(topLinePen, rect.X - 2, rect.Y - 1, rect.
Width
+ 1, rect.Y - 1);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (7)
118
if (!rect.IsEmpty && newRect.
Width
> rect.
Width
) {
119
Rectangle rectInvalidate = new Rectangle(rect.
Width
-1,0,newRect.
Width
-rect.
Width
+1,rect.Height);
124
if (ClientRectangle.
Width
!= rect.
Width
|| ClientRectangle.Height != rect.Height) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (10)
1884
if (paintFullLabel && (neededWidth >= (rect.
Width
-(stringX+2)))) {
1907
g.FillRectangle(blank, rect.X, rect.Y, rect.
Width
, rect.Height);
1915
g.FillRectangle(gridHost.GetSelectedItemWithFocusBackBrush(g), stringX, rect.Y, rect.
Width
- stringX - 1, rect.Height);
1918
int maxSpace = Math.Min(rect.
Width
-stringX-1, labelWidth + PropertyGridView.GDIPLUS_SPACE);
2063
g.DrawRectangle(p, outline.X, outline.Y, outline.
Width
- 1, outline.Height - 1);
2068
outline.X + outline.
Width
- indent - 1,outline.Y + outline.Height/2);
2072
g.DrawLine(p, outline.X + outline.
Width
/2, outline.Y + indent,
2073
outline.X + outline.
Width
/2, outline.Y + outline.Height - indent - 1);
2175
if (textWidth >= rect.
Width
|| GetMultipleLines(strValue))
2199
IntNativeMethods.RECT lpRect = IntNativeMethods.RECT.FromXYWH(rect.X + (int)m.OffsetX + 2, rect.Y + (int)m.OffsetY - 1, rect.
Width
- 4, rect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (2)
180
NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(itemRect.X, itemRect.Y, itemRect.
Width
, itemRect.Height);
189
int overHang = (Location.X + Size.Width) - SystemInformation.VirtualScreen.
Width
;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (23)
558
return new Point(pt.X + (rect.
Width
/ 2), pt.Y + (rect.Height / 2));
793
return new Rectangle(pt.x, pt.y, rect.
Width
, rect.Height);
1061
rectTarget.
Width
,rectTarget.Height);
1636
size.Width = Math.Max(rect.
Width
+ 1, size.Width);
1641
loc.X = Math.Min(rectScreen.X + rectScreen.
Width
- size.Width,
1642
Math.Max(rectScreen.X, loc.X + rect.X + rect.
Width
- size.Width));
1715
size.Width = Math.Max(rect.
Width
+ 1, size.Width);
1720
loc.X = Math.Min(rectScreen.X + rectScreen.
Width
- size.Width,
1721
Math.Max(rectScreen.X, loc.X + rect.X + rect.
Width
- size.Width));
2223
Size sizeWindow = new Size(rect.
Width
,rect.Height);
2227
boundsScroll.X = sizeWindow.Width - boundsScroll.
Width
- 1;
3782
if (!lastClientRect.IsEmpty && newRect.
Width
> lastClientRect.
Width
) {
3783
Rectangle rectInvalidate = new Rectangle(lastClientRect.
Width
-1,0,newRect.
Width
-lastClientRect.
Width
+1,lastClientRect.Height);
3788
Rectangle rectInvalidate = new Rectangle(0,lastClientRect.Height-1,lastClientRect.
Width
,newRect.Height-lastClientRect.Height+1);
3908
DropDownListBox.Width = Math.Max(maxWidth, GetRectangle(row,ROWVALUE).
Width
);
4083
if (gridentry.OutlineRect.Height != outlineRectIconSize || gridentry.OutlineRect.
Width
!= outlineRectIconSize) {
4428
Rectangle rectTarget = new Rectangle(rect.X+rect.
Width
-sizeBtn.Width,
5860
if ((dragBaseRect.
Width
- delta) > MinDropDownSize.Width)
5863
newBounds.Width = dragBaseRect.
Width
- delta;
6721
ClientRectangle.
Width
<= psheet.SelectedGridEntry.GetValueTextWidth(this.Text, g, this.Font)) {
winforms\Managed\System\WinForms\Screen.cs (1)
328
NativeMethods.RECT rc = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.
Width
, rect.Height);
winforms\Managed\System\WinForms\ScrollableControl.cs (26)
270
rect.Width = displayRect.
Width
;
288
displayRectangle.Width = Math.Max(displayRectangle.
Width
, AutoScrollMinSize.Width);
407
display.Width = client.
Width
;
443
int maxX = minClient.
Width
;
557
int ctlRight = -display.X + bounds.X + bounds.
Width
+ scrollMargin.Width;
584
if (maxX <= fullClient.
Width
) {
600
if (needVscroll && maxX > clientToBe.
Width
) {
604
maxX = clientToBe.
Width
;
647
displayRect = new Rectangle(displayRect.X, displayRect.Y, this.displayRect.
Width
, this.VerticalScroll.Maximum);
726
int maxPos = -(client.
Width
- displayRect.
Width
);
847
int minX = Math.Min(client.
Width
- displayRectangle.
Width
, 0);
876
NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.
Width
, cr.Height);
877
NativeMethods.RECT rcUpdate = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.
Width
, cr.Height);
915
&& (client.
Width
> 0 && client.Height > 0)) {
961
else if (bounds.X + bounds.
Width
+ xMargin > client.
Width
) {
963
xCalc = client.
Width
- (bounds.X + bounds.
Width
+ xMargin - displayRect.X);
1132
if (displayRect.
Width
!= width
1140
int minX = ClientRectangle.
Width
- width;
1233
HorizontalScroll.maximum = displayRect.
Width
-1;
1236
HorizontalScroll.largeChange = ClientRectangle.
Width
;
1394
int maxPos = -(client.
Width
- displayRect.
Width
);
winforms\Managed\System\WinForms\SplitContainer.cs (6)
858
OnSplitterMoved(new SplitterEventArgs(SplitterRectangle.X + SplitterRectangle.
Width
/2, SplitterRectangle.Y + SplitterRectangle.Height/2, SplitterRectangle.X, SplitterRectangle.Y));
1182
SplitterCancelEventArgs se = new SplitterCancelEventArgs(this.Left + SplitterRectangle.X + SplitterRectangle.
Width
/2, this.Top + SplitterRectangle.Y + SplitterRectangle.Height/2, xSplit, ySplit);
1553
if (r.
Width
< minWeight) {
1570
if (r.
Width
< minWeight) {
1639
SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.
Width
, r.Height, NativeMethods.PATINVERT);
2383
return new Rectangle(containerRectangle.X + splitterRectangle.X, containerRectangle.Y + splitterRectangle.Y, splitterRectangle.
Width
, splitterRectangle.Height);
winforms\Managed\System\WinForms\Splitter.cs (9)
463
bounds.X += bounds.
Width
- splitSize;
469
OnSplitterMoved(new SplitterEventArgs(Left, Top, (Left + bounds.
Width
/ 2), (Top + bounds.Height / 2)));
676
if (r.
Width
< minWeight) r.Width = minWeight;
680
if (r.
Width
< minWeight) r.Width = minWeight;
681
r.X = bounds.X + bounds.
Width
- splitSize - r.
Width
;
702
return r.
Width
;
721
initTargetSize = target.Bounds.
Width
;
776
SafeNativeMethods.PatBlt(new HandleRef(ParentInternal, dc), r.X, r.Y, r.
Width
, r.Height, NativeMethods.PATINVERT);
winforms\Managed\System\WinForms\StatusBar.cs (3)
900
int leftoverWidth = rect.
Width
- barPanelWidth;
1110
if (x > bounds.X + bounds.
Width
- SizeGripWidth) {
1888
ti.rect = NativeMethods.RECT.FromXYWH(tool.rect.X, tool.rect.Y, tool.rect.
Width
, tool.rect.Height);
winforms\Managed\System\WinForms\StatusStrip.cs (2)
402
else if (item.Bounds.
Width
== 1) {
537
TableLayoutSettings.ColumnStyles[0].Width = Math.Max(0,this.DisplayRectangle.
Width
);
winforms\Managed\System\WinForms\TabControl.cs (1)
414
NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(bounds.X, bounds.Y, bounds.
Width
, bounds.Height);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (6)
439
Rectangle insideCellBounds = new Rectangle(outsideCellBounds.X + (cellBorderWidth + 1) / 2, outsideCellBounds.Y + (cellBorderWidth + 1)/ 2, outsideCellBounds.
Width
- (cellBorderWidth + 1) / 2, outsideCellBounds.Height - (cellBorderWidth + 1) / 2);
464
Rectangle tableBounds = new Rectangle(cellBorderWidth/2 + displayRect.X, cellBorderWidth/2 + displayRect.Y, displayRect.
Width
- cellBorderWidth, displayRect.Height - cellBorderWidth);
469
g.DrawLine(SystemPens.ControlDark, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.
Width
- 1, tableBounds.Y + tableBounds.Height - 1);
473
g.DrawLine(pen, tableBounds.X + tableBounds.
Width
- 1, tableBounds.Y, tableBounds.X + tableBounds.
Width
- 1, tableBounds.Y + tableBounds.Height - 1);
474
g.DrawLine(pen, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.
Width
- 1, tableBounds.Y + tableBounds.Height - 1);
winforms\Managed\System\WinForms\TabPage.cs (2)
718
Rectangle rectWithBorder = new Rectangle(inflateRect.X - 4, inflateRect.Y - 2, inflateRect.
Width
+ 8, inflateRect.Height + 6);
747
base.SetBoundsCore (r.X, r.Y, r.
Width
, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
winforms\Managed\System\WinForms\ToolStrip.cs (8)
269
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.
Width
, bounds.Height, BoundsSpecified.Location);
2515
maxSize.Width += overflowItemMargin.Horizontal + overflowItem.Bounds.
Width
;
2839
using (Bitmap image = new Bitmap(bounds.
Width
, bounds.Height))
2848
SafeNativeMethods.BitBlt(new HandleRef(this, desthDC), bounds.X, bounds.Y, bounds.
Width
, bounds.Height,
4296
gripRectangle.X = ClientRectangle.Right - gripRectangle.
Width
- Grip.Margin.Horizontal;
4307
gripRectangle.Width = displayRect.
Width
;
4783
SetBoundsCore(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, specified);
5544
int widthUnit = orig.
Width
/ 2;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
736
Point middle = new Point(dropDownRect.Left + dropDownRect.
Width
/ 2, dropDownRect.Top + dropDownRect.Height / 2);
739
middle.X += (dropDownRect.
Width
% 2);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (3)
58
CommonProperties.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.
Width
, bounds.Height);
475
CommonProperties.UpdateSpecifiedBounds(control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.
Width
, specifiedBounds.Height);
485
CommonProperties.UpdateSpecifiedBounds(control, bounds.X, bounds.Y, bounds.
Width
, bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (5)
1251
offset.X = - dropDownBounds.
Width
;
1262
offset.X = - dropDownBounds.
Width
;
1444
SetBoundsCore(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, BoundsSpecified.Location);
1761
base.SetBoundsCore(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, specified);
1988
if (bounds.
Width
> 0 && bounds.Height >0) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
260
preferredSize.Width += DropDownArrowRect.
Width
+ scaledDropDownArrowPadding.Horizontal;
300
dropDownArrowRect = new Rectangle(0,options.client.Bottom + scaledDropDownArrowPadding.Top, ownerItem.Bounds.
Width
-1, dropDownArrowSize.Height);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (8)
126
if (intersectionBetweenChildAndParent.
Width
>= 2) {
131
int newIntersectionWidth = Rectangle.Intersect(GetDropDownBounds(newDropDownDirection), ownerItemBounds).
Width
;
132
if (newIntersectionWidth < intersectionBetweenChildAndParent.
Width
) {
315
offset.X = -dropDownBounds.
Width
+ this.Width;
325
offset.X = -dropDownBounds.
Width
+ this.Width;
337
offset.X = -dropDownBounds.
Width
;
394
if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).
Width
> 1) {
399
if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).
Width
> 1) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
123
int padding = (ShowCheckMargin || ShowImageMargin) ? textPadding + ImageMargin.
Width
: textPadding;
379
maxNonMenuItemSize.Width = Math.Max(item.Bounds.
Width
, maxNonMenuItemSize.Width);
485
int trimPadding = imageMarginBounds.
Width
;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (20)
57
int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Height : bounds.
Width
;
58
int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.
Width
: bounds.Height;
145
g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
150
g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.
Width
-1, bounds.Height -1);
233
g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
245
g.DrawRectangle(SystemPens.ButtonShadow, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
262
bool oddWidth = ((bounds.
Width
& 0x1) == 0x1);
267
g.DrawLine(p, bounds.X + indent, bounds.Y, bounds.
Width
- 1, bounds.Y);
269
g.DrawLine(p, bounds.X + indent, bounds.Height - 1, bounds.
Width
- 1, bounds.Height - 1);
274
g.DrawLine(p, bounds.
Width
- 1, bounds.Y + indent, bounds.
Width
- 1, bounds.Height - 1);
283
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.
Width
- 2, 1, 1, 1));
295
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.
Width
- 2, bounds.Height - 2, 1, 1));
321
int startX = bounds.
Width
/ 2;
329
if (bounds.
Width
>= 4) {
379
g.DrawImage(image, imageRect, 0, 0, imageRect.
Width
, imageRect.Height, GraphicsUnit.Pixel, attrs);
399
g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
402
g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
427
g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
432
g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
1120
SetBounds(currentBounds.X, currentBounds.Y, currentBounds.
Width
, value);
2446
return Bounds.
Width
;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1091
if (checkRectangle.
Width
!= 0) {
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
101
SetBoundsCore(bounds.X, bounds.Y, bounds.
Width
, bounds.Height, specified);
winforms\Managed\System\WinForms\ToolStripPanel.cs (4)
590
controlLocations[j] = new Point(row.Bounds.
Width
- control.Right, control.Top);
1145
cursorLoc.X += toolStripToDrag.GripRectangle.
Width
/2;
1208
if (Orientation == Orientation.Horizontal && (bounds.
Width
== 0)) {
1209
bounds.Width = ParentInternal.DisplayRectangle.
Width
;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (2)
241
constrainingSize.Width = ToolStripPanelRow.Bounds.
Width
;
271
if (spaceToFree > 0 && bounds.
Width
> spaceToFree) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (13)
448
if (cachedBounds.
Width
> minSize.Width) {
449
spaceToFree -= (cachedBounds.
Width
- minSize.Width);
458
cellOffsets[j] += Math.Max(0,currentCell.CachedBounds.
Width
-cachedBounds.
Width
);
672
preferredSize.Width = DisplayRectangle.
Width
;
945
displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.
Width
- (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal;
948
displayRect.Width = raftingDisplayRectangle.
Width
- Row.Margin.Horizontal;
996
return totalSize.Width < DisplayRectangle.
Width
;
1175
freedSpace += DisplayRectangle.
Width
;
1245
int spaceOccupiedByCell = cell.Margin.Horizontal + cell.Bounds.
Width
;
1473
int x = previousRowBounds.X + previousRowBounds.
Width
- (previousRowBounds.
Width
>> 2);
1482
dragBounds.Width += (nextRowBounds.
Width
>> 2) + Row.Margin.Right + ToolStripPanel.RowsInternal[index + 1].Margin.Left;
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (7)
48
bool oddWidth = ((bounds.
Width
& 0x1) == 0x1);
53
g.DrawLine(p, bounds.X + indent, bounds.Y, bounds.
Width
- 1, bounds.Y);
55
g.DrawLine(p, bounds.X + indent, bounds.Height - 1, bounds.
Width
- 1, bounds.Height - 1);
60
g.DrawLine(p, bounds.
Width
- 1, bounds.Y + indent, bounds.
Width
- 1, bounds.Height - 1);
69
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.
Width
- 2, 1, 1, 1));
81
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.
Width
- 2, bounds.Height - 2, 1, 1));
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (39)
335
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
347
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
384
g.DrawLine(p, bounds.
Width
- 2, bounds.Height - 2, bounds.
Width
- 1, bounds.Height - 3);
389
g.DrawLine(p, bounds.
Width
-1, 0,bounds.
Width
-1, bounds.Height - 1);
392
g.DrawLine(p, bounds.
Width
- 2, bounds.Height - 2, bounds.
Width
- 1, bounds.Height - 3);
408
edging = new Rectangle(bounds.
Width
- 1, 3, 1, bounds.Height - 3);
411
edging = new Rectangle(3, bounds.Height -1, bounds.
Width
-3, bounds.Height - 1);
437
int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Height : bounds.
Width
;
438
int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.
Width
: bounds.Height;
494
if ((bounds.
Width
== 0) || (bounds.Height == 0)) {
523
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
566
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
742
Point topRight = new Point(bounds.
Width
- 1, 0);
744
Point bottomRight = new Point(bounds.
Width
- 1, bounds.Height - 1);
837
if ((bounds.
Width
== 0) || (bounds.Height == 0)) {
853
endGradient.X = bounds.Right - endGradient.
Width
;
854
useDoubleGradient = (bounds.
Width
> (firstGradientWidth + secondGradientWidth));
909
Rectangle bounds = DpiHelper.IsScalingRequired ? new Rectangle(e.ImageRectangle.Left-2, (e.Item.Height - e.ImageRectangle.Height )/2- 1, e.ImageRectangle.
Width
+4, e.ImageRectangle.Height +2) :
910
new Rectangle(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.
Width
+ 4, e.Item.Height - 2);
921
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
931
g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
936
if ((bounds.
Width
== 0) || (bounds.Height == 0)) {
947
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
1039
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
1064
overflowBoundsFill.X += overflowBoundsFill.
Width
- overflowButtonWidth + 1;
1133
g.FillRectangle(b, overflowBoundsFill.
Width
- 3, overflowBoundsFill.Top - 1, 1, 1);
1134
g.FillRectangle(b, overflowBoundsFill.
Width
- 2, overflowBoundsFill.Top - 2, 1, 1);
1162
Point topRight = new Point(bounds.
Width
- 1, 0);
1219
if ((bounds.
Width
== 0) || (bounds.Height == 0)) {
1236
if ((bounds.
Width
== 0) || (bounds.Height == 0)) {
1311
int startX = bounds.
Width
/ 2;
1324
if (isAHorizontalSeparatorNotOnDropDownMenu && bounds.
Width
>= 4) {
1351
if ((bounds.
Width
== 0) || (bounds.Height == 0)) {
1396
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
1443
Point middle = new Point(dropDownRect.Left + dropDownRect.
Width
/ 2, dropDownRect.Top + dropDownRect.Height / 2);
1446
middle.X += (dropDownRect.
Width
% 2);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (5)
711
Point middle = new Point(dropDownRect.Left + dropDownRect.
Width
/ 2, dropDownRect.Top + dropDownRect.Height / 2);
907
e.Graphics.DrawImage(image, imageRect, 0, 0, imageRect.
Width
,
934
if (e.TextDirection != ToolStripTextDirection.Horizontal && textRect.
Width
> 0 && textRect.Height > 0) {
1034
baseRect.X = sizeGripBounds.
Width
- baseRect.X - baseRect.
Width
;
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
129
return new Rectangle(itemBounds.X+1, 0, itemBounds.
Width
-2, 2);
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
420
return new Size(parent.Width - (parent.Padding.Horizontal - dropDownMenu.ImageMargin.
Width
), WINBAR_SEPARATORTHICKNESS);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
375
int splitButtonButtonWidth = Math.Max(0, this.Width - dropDownButtonBounds.
Width
);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (6)
127
if (currentWidth > displayRectangle.
Width
- overflowWidth) {
131
int spaceRecovered = SendNextItemToOverflow((currentWidth + overflowWidth) - displayRectangle.
Width
, true);
356
else if (alignedRightItems.
Width
> 0 && alignedLeftItems.
Width
> 0 && alignedRightItems.IntersectsWith(alignedLeftItems)) {
481
else if (alignedRightItems.
Width
> 0 && alignedLeftItems.
Width
> 0 && alignedRightItems.IntersectsWith(alignedLeftItems)) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (8)
241
e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.
Width
, bounds.Bottom-1);
242
e.Graphics.DrawLine(SystemPens.InactiveBorder, 0,bounds.Bottom-2,bounds.
Width
,bounds.Bottom-2);
245
e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.
Width
, bounds.Bottom-1);
246
e.Graphics.DrawLine(SystemPens.ButtonShadow, 0,bounds.Bottom-2,bounds.
Width
,bounds.Bottom-2);
288
if (bounds.
Width
>= 4) {
413
g.DrawRectangle(p, bounds.X, bounds.Y, bounds.
Width
- 1, bounds.Height - 1);
628
int startX = bounds.
Width
/ 2;
639
if (bounds.
Width
>= 4) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
168
return new Size(bounds.
Width
, TextBox.PreferredHeight);
winforms\Managed\System\WinForms\ToolTip.cs (8)
1798
int centeredX = toolRectangle.Left + toolRectangle.
Width
/ 2 - width / 2; // tooltip will be aligned with tool vertically
1819
locationWeights[i] += Math.Abs((long)intersection.
Width
* intersection.Height); // Intersection is a weight
1830
locationClippedAreas[i] = (Math.Abs((long)possibleLocations[i].
Width
) - Math.Abs((long)locationAreaWithinScreen.
Width
))
1842
locationWithinTopControlAreas[i] = Math.Abs((long)locationWithinTopControlRectangle.Height * locationWithinTopControlRectangle.
Width
);
2337
Math.Min(currentTooltipSize.Width-2*XBALLOONOFFSET, screen.WorkingArea.
Width
):
2338
Math.Min(currentTooltipSize.Width, screen.WorkingArea.
Width
);
2516
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.
Width
);
winforms\Managed\System\WinForms\TrackBar.cs (1)
462
SetBounds(r.X, r.Y, r.Height, r.
Width
, BoundsSpecified.All);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (5)
157
if (numTicks <= 0 || bounds.Height <= 0 || bounds.
Width
<= 0 || g == null) {
169
float inc = ((float)bounds.
Width
- lineWidth) / ((float)numTicks - 1);
188
if (numTicks<=0 || bounds.Height <= 0 || bounds.
Width
<=0 || g == null ) {
196
visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, bounds.
Width
, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
205
visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, (int)Math.Round(y), bounds.
Width
, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
winforms\Managed\System\WinForms\Triangle.cs (3)
60
int updnWidth =(int)(bounds.
Width
* TRI_WIDTH_RATIO);
110
bounds.X +(bounds.
Width
- updnHeight)/2,
116
bounds.X +(bounds.
Width
- lrWidth)/2,
winforms\Managed\System\WinForms\UpDownBase.cs (4)
812
Rectangle clipTop = new Rectangle(bounds.Left, bounds.Top, bounds.
Width
, border);
814
Rectangle clipBottom = new Rectangle(bounds.Left, bounds.Bottom - border, bounds.
Width
, border);
1094
int totalClientWidth = clientArea.
Width
;
1107
upDownEditBounds.Size = new Size(clientArea.
Width
- defaultButtonsWidth, clientArea.Height);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (10)
283
if (bounds.
Width
< 0 || bounds.Height < 0) {
314
if (bounds.
Width
< 0 || bounds.Height < 0) {
317
if (clipRectangle.
Width
< 0 || clipRectangle.Height < 0) {
383
if (bounds.
Width
< 0 || bounds.Height < 0) {
410
if (bounds.
Width
< 0 || bounds.Height < 0) {
445
if (bounds.
Width
< 0 || bounds.Height < 0) {
488
if (bounds.
Width
< 0 || bounds.Height < 0) {
512
if (bounds.
Width
< 0 || bounds.Height < 0) {
536
if (contentBounds.
Width
< 0 || contentBounds.Height < 0) {
564
if (bounds.
Width
< 0 || bounds.Height < 0) {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
308
lprcPosRect.right = this.Host.Bounds.
Width
+ this.Host.Bounds.X;
winforms\Managed\System\WinForms\WinFormsUtils.cs (3)
104
bounds.Size = new Size(Math.Min(constrainingBounds.
Width
-2, bounds.
Width
),
112
bounds.X = constrainingBounds.Right - bounds.
Width
;
System.Windows.Forms.DataVisualization (51)
Common\General\Legend.cs (10)
476
legendPosition.
Width
,
513
legendPosition.
Width
- (this.GetBorderSize() + this._offset.Width) * 2,
531
legendPosition.
Width
- 2 * (this._offset.Width + this.GetBorderSize()),
2503
if(separatorRect.
Width
> 0 && separatorRect.Height > 0)
2522
separatorRect.X += separatorRect.
Width
;
2536
int step = (this._legendItemsAreaPosition.
Width
/ 3) / markerCount;
2541
this._legendItemsAreaPosition.X + this._legendItemsAreaPosition.
Width
/ 2 - step * (float)Math.Floor(markerCount/2f),
4032
this._headerPosition.
Width
> 0 &&
4089
columnWidth += rect.
Width
;
4093
if(rect.
Width
> 0 && rect.Height > 0)
Common\General\LegendColumns.cs (32)
1915
if(this.cellPosition.
Width
<= 0 || this.cellPosition.Height <= 0)
2104
imageCellPosition.Width = imagePosition.
Width
;
2112
if(newWidth > this.cellPosition.
Width
)
2114
newWidth = this.cellPosition.
Width
;
2135
if(imagePosition.
Width
> imageCellPosition.
Width
)
2137
scaleValue = Math.Max(scaleValue, (float)imagePosition.
Width
/ (float)imageCellPosition.
Width
);
2142
imagePosition.Width = (int)(imagePosition.
Width
/ scaleValue);
2145
imagePosition.X = (int)((this.cellPosition.X + this.cellPosition.
Width
/2f) - imagePosition.
Width
/2f);
2159
imagePosition.X = this.cellPosition.Right - imagePosition.
Width
;
2227
if(newWidth > this.cellPosition.
Width
)
2229
newWidth = this.cellPosition.
Width
;
2244
if(seriesMarkerPosition.Height <= 0 || seriesMarkerPosition.
Width
<= 0)
2250
seriesMarkerPosition.X = (int)((this.cellPosition.X + this.cellPosition.
Width
/2f) - seriesMarkerPosition.
Width
/2f);
2264
seriesMarkerPosition.X = this.cellPosition.Right - seriesMarkerPosition.
Width
;
2305
if (imageScale.
Width
> seriesMarkerPosition.
Width
)
2307
scaleValue = Math.Max(scaleValue, (float)imageScale.
Width
/ (float)seriesMarkerPosition.
Width
);
2312
imageScale.Width = (int)(imageScale.
Width
/ scaleValue);
2314
imageScale.X = (int)((seriesMarkerPosition.X + seriesMarkerPosition.
Width
/ 2f) - imageScale.
Width
/ 2f);
2407
int markerSize = (int)Math.Min(seriesMarkerPosition.
Width
, seriesMarkerPosition.Height);
2423
point.X = (int)(seriesMarkerPosition.X + seriesMarkerPosition.
Width
/2f);
2446
if(imageScale.
Width
> seriesMarkerPosition.
Width
)
2448
scaleValue = Math.Max(scaleValue, (float)imageScale.
Width
/ (float)seriesMarkerPosition.
Width
);
2453
imageScale.Width = (int)(imageScale.
Width
/ scaleValue);
WinForm\ChartWinControl.cs (2)
429
paintBufferBitmap.Width < scaleX * ClientRectangle.
Width
||
439
paintBufferBitmap = new Bitmap((int)(ClientRectangle.
Width
* scaleX), (int)(ClientRectangle.Height * scaleY), e.Graphics);
WinForm\Utilities\Printing.cs (7)
146
_chartImage.Width = position.
Width
;
257
marginPixel.Width = (int)(marginPixel.
Width
* (ev.Graphics.DpiX / 100.0f));
264
float chartWidthScale = ((float)marginPixel.
Width
) / ((float)chartPosition.
Width
);
266
chartPosition.Width = (int)(chartPosition.
Width
* Math.Min(chartWidthScale, chartHeightScale));
270
chartPosition.X += (marginPixel.
Width
- chartPosition.
Width
) / 2;
System.Workflow.Activities (24)
Designers\ConditionalDesigner.cs (6)
99
diamondRectangle.Height = diamondRectangle.
Width
;
100
diamondRectangle.X = bounds.Left + bounds.
Width
/ 2 - diamondRectangle.
Width
/ 2;
121
new Point(rectangle.Left + rectangle.
Width
/ 2, rectangle.Top),
123
new Point(rectangle.Left + rectangle.
Width
/ 2, rectangle.Bottom - 1),
125
new Point(rectangle.Left + rectangle.
Width
/ 2, rectangle.Top)
Designers\ListenDesigner.cs (3)
79
roundRectangle.Height = roundRectangle.
Width
;
80
roundRectangle.X = bounds.Left + bounds.
Width
/ 2 - roundRectangle.
Width
/ 2;
Designers\SetStateDesigner.cs (1)
97
bounds.
Width
- margin.Width * 2,
Designers\StateDesigner.cs (2)
802
int midHorz = bounds.X + (bounds.
Width
/ 2);
813
int midHorz = bounds.X + (bounds.
Width
/ 2);
Designers\StateDesigner.Layouts.cs (3)
1020
if (rectangle.
Width
> 0 && rectangle.Height > 0)
1377
bounds.Left + (bounds.
Width
- _designerLayout.Size.Width) / 2,
1385
origin.X = bounds.Left + (bounds.
Width
- activeDesignerSize.Width) / 2;
Designers\StateDesignerConnector.cs (4)
234
path.AddLine(new Point(bounds.Left + bounds.
Width
/ 2, bounds.Top), new Point(bounds.Right, bounds.Top + bounds.Height / 2));
235
path.AddLine(new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.
Width
/ 2, bounds.Bottom));
236
path.AddLine(new Point(bounds.Left + bounds.
Width
/ 2, bounds.Bottom), new Point(bounds.Left, bounds.Top + bounds.Height / 2));
237
path.AddLine(new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.
Width
/ 2, bounds.Top));
Designers\StateMachineDesignerPaint.cs (1)
59
int width = rectangle.
Width
;
Designers\WhileDesigner.cs (3)
51
connectionPoint = new Point(bounds.Left + bounds.
Width
/ 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2);
54
points[0].X = bounds.Left + bounds.
Width
/ 2;
64
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { points[0], new Point(bounds.Left + bounds.
Width
/ 2, bounds.Bottom) }, LineAnchor.None, LineAnchor.None);
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
410
this.listBoxAutoComplete.Size = new Size(this.listBoxAutoComplete.Items[0].Bounds.
Width
+ 30, 72);
System.Workflow.ComponentModel (163)
AuthoringOM\Design\ActivityDesigner.cs (7)
950
hitRectangle = new Rectangle(bounds.Left, bounds.Top, bounds.
Width
, bounds.Height - bounds.Height);
953
hitRectangle = new Rectangle(bounds.Right, bounds.Top, bounds.
Width
- bounds.
Width
, bounds.Height);
956
hitRectangle = new Rectangle(bounds.Left, bounds.Bottom, bounds.
Width
, bounds.Bottom - bounds.Bottom);
1072
Rectangle viewPort = new Rectangle(bounds.Location, new Size(bounds.
Width
+ 1, bounds.Height + 1));
1183
connections.Add(new Point(bounds.Left + bounds.
Width
/ 2, bounds.Top));
1189
connections.Add(new Point(bounds.Left + bounds.
Width
/ 2, bounds.Bottom));
AuthoringOM\Design\ActivityPreviewDesigner.cs (6)
572
this.previewStrip.Location = new Point(bounds.Left + bounds.
Width
/ 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height);
581
this.previewWindow.Location = new Point(bounds.Left + bounds.
Width
/ 2 - this.previewWindow.Size.Width / 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height);
799
dropConnector.Width = (dropConnector.
Width
> ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0)) ? ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) : dropConnector.
Width
;
800
return new Point(dropConnector.Left + dropConnector.
Width
/ 2, dropConnector.Top + dropConnector.Height / 2);
935
Size selectionSize = new Size(Math.Max(itemBounds.
Width
/ 6, 1), Math.Max(itemBounds.Height / 6, 1));
AuthoringOM\Design\CompositeActivityDesigner.cs (5)
244
expandButtonRectangle.X += (bounds.
Width
- ((3 * designerTheme.ExpandButtonSize.Width / 2) + anchorSize.Width)) / 2;
305
imageRectangle.X += (bounds.
Width
- imageSize.Width) / 2;
309
imageRectangle.X += (bounds.
Width
- (imageSize.Width + 3 * expandButtonSize.Width / 2)) / 2;
336
int maxAvailableWidth = bounds.
Width
- (2 * margin.Width + 3 * expandButtonSize.Width / 2);
355
textRectangle.X += (bounds.
Width
- (3 * expandButtonSize.Width / 2 + textSize.Width)) / 2;
AuthoringOM\Design\Connector.cs (7)
523
path.AddLine(new Point(bounds.Left + bounds.
Width
/ 2, bounds.Top), new Point(bounds.Right, bounds.Top + bounds.Height / 2));
524
path.AddLine(new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.
Width
/ 2, bounds.Bottom));
525
path.AddLine(new Point(bounds.Left + bounds.
Width
/ 2, bounds.Bottom), new Point(bounds.Left, bounds.Top + bounds.Height / 2));
526
path.AddLine(new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.
Width
/ 2, bounds.Top));
1259
int minLengthForSegmentEditPoint = Source.Bounds.
Width
* 4;
1349
if ((distance < current.Bounds.
Width
|| distance < current.Bounds.Height) && next.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
1359
if ((distance < current.Bounds.
Width
|| distance < current.Bounds.Height) && previous.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
AuthoringOM\Design\DesignerHelpers.cs (24)
193
graphics.DrawImage(image, imageRectangle, source.X, source.Y, source.
Width
, source.Height, GraphicsUnit.Pixel, imageAttributes);
203
rectangle.Width = Math.Min(size.Width, destination.
Width
);
215
rectangle.X = destination.Right - rectangle.
Width
;
217
rectangle.X = destination.Left + destination.
Width
/ 2 - rectangle.
Width
/ 2;
382
graphics.DrawLine(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + boundingRect.
Width
/ 2, boundingRect.Top + 2, boundingRect.Left + boundingRect.
Width
/ 2, boundingRect.Bottom - 2);
425
if (shadowSourceRectangle.IsEmpty || shadowSourceRectangle.
Width
< 0 || shadowSourceRectangle.Height < 0)
784
scrollIndicatorPath.AddLine(bounds.Left + (bounds.
Width
- arrowSize.Width) / 2, bounds.Top, bounds.Left + (bounds.
Width
- arrowSize.Width) / 2, bounds.Top + arrowSize.Height);
785
scrollIndicatorPath.AddLine(bounds.Left + (bounds.
Width
- arrowSize.Width) / 2, bounds.Top + arrowSize.Height, bounds.Left + (bounds.
Width
- arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint);
786
scrollIndicatorPath.AddLine(bounds.Left + (bounds.
Width
- arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint, bounds.Left + (bounds.
Width
- arrowSize.Width) / 2, bounds.Top);
790
scrollIndicatorPath.AddLine(bounds.Left + (bounds.
Width
- arrowSize.Width) / 2, bounds.Top + midPoint, bounds.Left + (bounds.
Width
- arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height);
791
scrollIndicatorPath.AddLine(bounds.Left + (bounds.
Width
- arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height, bounds.Left + (bounds.
Width
- arrowSize.Width) / 2 + arrowSize.Width, bounds.Top);
792
scrollIndicatorPath.AddLine(bounds.Left + (bounds.
Width
- arrowSize.Width) / 2 + arrowSize.Width, bounds.Top, bounds.Left + (bounds.
Width
- arrowSize.Width) / 2, bounds.Top + midPoint);
797
int arrowWidth = bounds.
Width
+ bounds.
Width
% 2;
1920
distances.Add(DistanceBetweenPoints(point, new Point(rect.Left + rect.
Width
/ 2, rect.Top)));
1924
distances.Add(DistanceBetweenPoints(point, new Point(rect.Right + rect.
Width
/ 2, rect.Bottom)));
AuthoringOM\Design\DesignerWidgets.cs (35)
139
using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.
Width
+ 1, bounds.Height + 1)))
196
using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.
Width
+ 1, bounds.Height + 1)))
213
int margin = itemRectangle.
Width
/ 5;
239
itemRectangle.X += (itemRectangle.
Width
- itemRectangle.Height) / 2;
366
availableSize = this.bounds.
Width
- (2 * (2 * this.margin.Width + this.buttonSize.Width));
378
this.itemStrip.Size = new Size(Math.Min(this.bounds.
Width
, reqdSize.Width), Math.Min(availableSize, reqdSize.Height));
841
int totalStripSize = this.bounds.
Width
- this.margin.Width;
1226
graphics.DrawRectangle(SystemPens.ControlDarkDark, this.formRectangle.X, this.formRectangle.Y, this.formRectangle.
Width
- 1, this.formRectangle.Height - 1);
1239
graphics.FillRectangle(SystemBrushes.InactiveCaptionText, itemBounds.X, itemBounds.Y, itemBounds.
Width
- 1, itemBounds.Height - 1);
1240
graphics.DrawRectangle(SystemPens.ActiveCaption, itemBounds.X, itemBounds.Y, itemBounds.
Width
- 1, itemBounds.Height - 1);
1927
RectangleF tabTextRectangleF = new RectangleF(tabTextRectangle.X, tabTextRectangle.Y, tabTextRectangle.
Width
, tabTextRectangle.Height);
1932
using (Bitmap bitmap = new Bitmap(tabTextRectangle.Height, tabTextRectangle.
Width
, e.Graphics))
2014
int lastItemWidth = (this.orientation == Orientation.Horizontal) ? lastItemStruct.TabItemRectangle.
Width
- itemSizeDecrease : lastItemStruct.TabItemRectangle.Height - itemSizeDecrease;
2024
if ((i == this.tabItemList.Count - 1) && this.drawItems[i].TabItemRectangle.
Width
< this.reqTabItemSize)
2112
textRectangle.X += imageRectangle.
Width
+ TabMargin;
2113
textRectangle.Width -= (imageRectangle.
Width
+ TabMargin);
2122
if (textRectangle.
Width
<= 0 || textRectangle.Height <= 0)
2742
imageRectangle.Size = new Size(itemRectangle.
Width
- 4, itemRectangle.Height - 4);
2759
graphics.DrawLine(ambientTheme.DropIndicatorPen, dropTargets[activeDropTarget].Left + dropTargets[activeDropTarget].
Width
/ 2, dropTargets[activeDropTarget].Top, dropTargets[activeDropTarget].Left + dropTargets[activeDropTarget].
Width
/ 2, dropTargets[activeDropTarget].Bottom);
3245
descRectanglePos.X = this.bounds.Left + this.bounds.
Width
/ 2 - this.previewModeDescRectangle.
Width
/ 2 + this.previewModeButtonRectangle.
Width
+ margin.Width;
3250
previewModeBitmapPos.X = descRectanglePos.X - (this.previewModeButtonRectangle.
Width
+ margin.Width);
3254
this.canvasBounds.Location = new Point(value.X + this.bounds.
Width
/ 2 - this.canvasBounds.
Width
/ 2, this.previewModeDescRectangle.Bottom + margin.Height);
3260
location.X = this.canvasBounds.Left + this.canvasBounds.
Width
/ 2 - PreviewDesigner.Size.Width / 2;
3376
this.canvasBounds.Size = new Size(Math.Max(this.canvasBounds.
Width
, designerTheme.PreviewWindowSize.Width), Math.Max(this.canvasBounds.Height, designerTheme.PreviewWindowSize.Height));
3383
this.canvasBounds.Width = Math.Max(this.canvasBounds.
Width
, minWidth);
3394
totalSize.Width = this.canvasBounds.
Width
+ 2 * margin.Width;
3413
graphics.DrawRectangle(Pens.Black, this.previewModeButtonRectangle.Left - 1, this.previewModeButtonRectangle.Top - 1, this.previewModeButtonRectangle.
Width
+ 1, this.previewModeButtonRectangle.Height + 1);
3417
ActivityDesignerPaint.DrawImage(graphics, previewModeImage, new Rectangle(this.previewModeButtonRectangle.Left + 2, this.previewModeButtonRectangle.Top + 2, this.previewModeButtonRectangle.
Width
- 4, this.previewModeButtonRectangle.Height - 4), DesignerContentAlignment.Center);
3459
Size maxBitmapSize = new Size(this.canvasBounds.
Width
- 2 * margin.Width, this.canvasBounds.Height - 2 * margin.Height);
3466
destnRectangle.X = this.canvasBounds.Left + this.canvasBounds.
Width
/ 2 - destnRectangle.
Width
/ 2;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
509
Rectangle lineRectangle = new Rectangle(this.ClientRectangle.Left, this.artifactLabel.Bottom + ((this.typeNameTableLayoutPanel.Top + this.typeTextBox.Top - this.artifactLabel.Bottom) / 2), this.ClientRectangle.
Width
, 1);
514
lineRectangle = new Rectangle(this.ClientRectangle.Left, this.helpTextHolder.Bottom + ((this.okCancelTableLayoutPanel.Top + this.buttonOK.Top - this.helpTextHolder.Bottom) / 2), this.ClientRectangle.
Width
, 1);
AuthoringOM\Design\FreeFormDesigner.cs (1)
262
minimumSize.Width = Math.Max(minimumSize.Width, childRectangle.
Width
);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (3)
84
graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.Left, activatedBounds.Top, activatedBounds.
Width
- 1, activatedBounds.Height - 1);
86
activatedBounds.X += bounds.
Width
+ ambientTheme.Margin.Width;
87
activatedBounds.Width -= (bounds.
Width
+ 2 * ambientTheme.Margin.Width);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (2)
56
grabHandles[1] = new Rectangle(new Point(selectionRect.Left + (selectionRect.
Width
- grabHandleSize.Width) / 2, selectionRect.Top), grabHandleSize);
60
grabHandles[5] = new Rectangle(new Point(selectionRect.Left + (selectionRect.
Width
- grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
119
if (clientPoint.X <= clientRectangle.
Width
/ 10 && hScrollBar.Value > 0)
121
else if (clientPoint.X >= clientRectangle.Right - clientRectangle.
Width
/ 10 && hScrollBar.Value < hScrollBar.Maximum - hScrollBar.LargeChange)
170
scrollIndicatorRectangles[2].X = (clientRectangle.
Width
- scrollIndicatorSize.Width) / 2;
175
scrollIndicatorRectangles[3].X = (clientRectangle.
Width
- scrollIndicatorSize.Width) / 2;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
676
descriptionRectangle.Offset(imageRectangle.
Width
+ AmbientTheme.DragImageMargins.Width, 0);
678
Size draggedImageSize = parentView.LogicalSizeToClient(new Size(imageRectangle.
Width
+ descriptionRectangle.
Width
, Math.Max(imageRectangle.Height, descriptionRectangle.Height)));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (2)
121
e.Graphics.FillRectangle(dragRectangleBrush, dragRectangle.X, dragRectangle.Y, dragRectangle.
Width
- 1, dragRectangle.Height - 1);
122
e.Graphics.DrawRectangle(ambientTheme.SelectionForegroundPen, dragRectangle.X, dragRectangle.Y, dragRectangle.
Width
- 1, dragRectangle.Height - 1);
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
352
if (distance > rectangle.
Width
/ 3 || distance > rectangle.Height / 3)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
291
int delta = (designerBounds.
Width
< designerToSize.MinimumSize.Width) ? designerBounds.
Width
- designerToSize.MinimumSize.Width : 0;
314
designerBounds.Width = Math.Max(designerBounds.
Width
, designerToSize.MinimumSize.Width);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
170
Point center = parentView.LogicalPointToClient(new Point(dragRectangle.Location.X + dragRectangle.
Width
/ 2, dragRectangle.Location.Y + dragRectangle.Height / 2));
171
int zoom = (int)(Math.Min((float)parentView.ViewPortSize.Width / (float)dragRectangle.
Width
, (float)parentView.ViewPortSize.Height / (float)dragRectangle.Height) * 100.0f);
AuthoringOM\Design\ParallelActivityDesigner.cs (8)
351
parallelLinks[0].X = bounds.Left + bounds.
Width
/ 2;
353
parallelLinks[1].X = bounds.Left + bounds.
Width
/ 2;
372
parallelLinks[0].X = bounds.Left + bounds.
Width
/ 2;
374
parallelLinks[1].X = bounds.Left + bounds.
Width
/ 2;
424
DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, new Point[] { new Point(dropTargetRectangle.Left + dropTargetRectangle.
Width
/ 2, dropTargetRectangle.Top + 2), new Point(dropTargetRectangle.Left + dropTargetRectangle.
Width
/ 2, dropTargetRectangle.Bottom - 2) }, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap);
434
connectorPoints[0].X = dropTargetRectangle.X + dropTargetRectangle.
Width
/ 2;
452
connectorPoints[1].X = dropTargetRectangle.X + dropTargetRectangle.
Width
/ 2;
AuthoringOM\Design\SequentialActivityDesigner.cs (16)
163
helpTextRectangle.X = connectors[0].Left + connectors[0].
Width
/ 2 - this.helpTextSize.Width / 2;
208
connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.
Width
/ 2, startDesignerBounds.Top));
209
connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.
Width
/ 2, startDesignerBounds.Bottom));
238
connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.
Width
/ 2, endDesignerBounds.Top));
239
connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.
Width
/ 2, endDesignerBounds.Bottom));
255
connectorBounds[i].Inflate(3 * connectorBounds[i].
Width
, 0);
411
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].
Width
/ 2, connectors[0].Y + 2), new Point(connectors[0].X + connectors[0].
Width
/ 2, helpTextRectangle.Top - 2) }, compositeDesignerTheme.ConnectorStartCap, LineAnchor.None);
412
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].
Width
/ 2, helpTextRectangle.Bottom + 2), new Point(connectors[0].X + connectors[0].
Width
/ 2, connectors[0].Bottom - 2) }, LineAnchor.None, compositeDesignerTheme.ConnectorEndCap);
425
DrawConnectors(e.Graphics, pen, new Point[] { new Point(connectors[i].Left + connectors[i].
Width
/ 2, connectors[i].Top + 2), new Point(connectors[i].Left + connectors[i].
Width
/ 2, connectors[i].Bottom - 2) }, startCap, endCap);
493
containerSize.Width = Math.Max(helpTextRectangle.
Width
, containerSize.Width);
530
glyphLocation = new Point(helpTextRectangle.Left + helpTextRectangle.
Width
/ 2 + 1, helpTextRectangle.Top - ambientTheme.DropIndicatorSize.Height / 2);
567
grabHandles[0] = new Rectangle(bounds.X + bounds.
Width
/ 2 - ambientTheme.SelectionSize.Width / 2, bounds.Y, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height);
568
grabHandles[1] = new Rectangle(bounds.X + bounds.
Width
/ 2 - ambientTheme.SelectionSize.Width / 2, bounds.Bottom - ambientTheme.SelectionSize.Height, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (7)
111
bounds.Width = Math.Max(imageBounds.
Width
, textBounds.
Width
) + 2 * margin.Width;
119
bounds.X = designerBounds.Left + designerBounds.
Width
/ 2 - bounds.
Width
/ 2;
140
bounds.X = designerBounds.Left + designerBounds.
Width
/ 2 - this.textSize.Width / 2;
164
bounds.X = designerBounds.Left + designerBounds.
Width
/ 2 - bounds.
Width
/ 2;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
696
return new Point(dropConnector.Left + dropConnector.
Width
/ 2, dropConnector.Top + dropConnector.Height / 2);
AuthoringOM\Design\WorkflowLayouts.cs (12)
145
this.parentView.RootDesigner.Bounds.
Width
>= 0 && this.parentView.RootDesigner.Bounds.Height >= 0)
233
this.parentView.RootDesigner.Bounds.
Width
>= 0 && this.parentView.RootDesigner.Bounds.Height >= 0)
424
Size deltaSize = new Size(pageLayoutData.ViewablePageBounds.
Width
- intersectedPhysicalViewPort.
Width
, pageLayoutData.ViewablePageBounds.Height - intersectedPhysicalViewPort.Height);
433
insersectedLogicalViewPort.Width = pageLayoutData.LogicalPageBounds.
Width
- deltaLocation.X;
459
Size deltaSize = new Size(pageLayoutData.LogicalPageBounds.
Width
- intersectedLogicalViewPort.
Width
, pageLayoutData.LogicalPageBounds.Height - intersectedLogicalViewPort.Height);
468
insersectedPhysicalViewPort.Width = pageLayoutData.ViewablePageBounds.
Width
- deltaLocation.X;
566
viewPortBitmapArea.Width = pageLayoutData.LogicalPageBounds.
Width
;
641
if (!pageLayoutData.PageBounds.IntersectsWith(physicalViewPort) || pageLayoutData.PageBounds.
Width
<= 0 || pageLayoutData.PageBounds.Height <= 0)
672
viewPortBitmapArea.Width = intersectedViewPort.
Width
;
690
graphics.DrawRectangle(ambientTheme.ForegroundPen, pageLayoutData.ViewablePageBounds.Left - 3, pageLayoutData.ViewablePageBounds.Top - 3, pageLayoutData.ViewablePageBounds.
Width
+ 6, pageLayoutData.ViewablePageBounds.Height + 6);
AuthoringOM\Design\WorkflowPrinting.cs (6)
267
layoutRectangle.Width = Math.Min(headerFooterPrintData.PageBoundsWithoutMargin.
Width
, layoutRectangle.
Width
);
280
layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left + ((headerFooterPrintData.PageBoundsWithoutMargin.
Width
- layoutRectangle.
Width
) / 2); //align to the middle
285
layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left + (headerFooterPrintData.PageBoundsWithoutMargin.
Width
- layoutRectangle.
Width
); //align to the right corner
AuthoringOM\Design\WorkflowView.cs (6)
1535
viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new Size(rootDesigner.Bounds.
Width
+ 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height));
1536
viewPortData.MemoryBitmap = new Bitmap(viewPortData.LogicalViewPort.
Width
, viewPortData.LogicalViewPort.Height, graphics);
1744
if (rect.
Width
> clientRectangle.
Width
)
1745
scrollDelta.Width = (rect.Left + rect.
Width
/ 2) - (clientRectangle.Left + clientRectangle.
Width
/ 2);
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
88
Rectangle shadowRect = new Rectangle(frameRect.X, frameRect.Y + 6, frameRect.
Width
, frameRect.Height - 5);