37 references to Width
System.Windows.Forms (37)
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
3122
int height = GetPreferredHeight(rowIndex, this.OwningColumn.
Width
);
3124
if (this.OwningColumn.
Width
< width || this.OwningRow.Height < height)
5111
columnRect.X -= this.owner.OwningColumn.
Width
;
5117
columnRect.Width = this.owner.OwningColumn.
Width
;
5148
columnRect.X -= this.owner.OwningColumn.
Width
;
5151
columnRect.Width = this.owner.OwningColumn.
Width
;
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (2)
1213
columnWidthIncrement = adding ? dataGridViewColumn.
Width
: -dataGridViewColumn.
Width
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (28)
337
if (dataGridViewColumn.
Width
< preferredThickness)
559
Debug.Assert(dataGridViewColumn.MinimumWidth == dataGridViewColumn.
Width
);
585
widthSum += dataGridViewColumnTmp.
Width
;
595
imposedWidthSum += dataGridViewColumnTmp.
Width
;
596
availableWidth -= dataGridViewColumnTmp.
Width
;
735
imposedWidthSum += dataGridViewColumnTmp.
Width
;
743
imposedWidthSum += dataGridViewColumnTmp.
Width
;
744
availableWidth -= dataGridViewColumnTmp.
Width
;
819
dataGridViewColumnTmp.UsedFillWeight = weightSum * dataGridViewColumnTmp.
Width
/ availableWidth;
924
imposedWidthSum += dataGridViewColumn.
Width
;
978
dataGridViewColumn.UsedFillWeight = dataGridViewColumn.
Width
* weightSum / availableWidth;
1068
dataGridViewColumn.DesiredFillWidth = dataGridViewColumn.
Width
;
1115
dataGridViewColumn.DesiredFillWidth = dataGridViewColumn.
Width
;
2556
x += this.RightToLeftInternal ? -this.Columns[columnIndex].
Width
: this.Columns[columnIndex].
Width
;
3701
int wColumn = this.Columns[hti.col].
Width
;
4588
cx += dataGridViewColumn.
Width
;
4908
columnX -= this.Columns[columnIndex].
Width
;
5723
GetColumnXFromIndex(this.trackColumnEdge) - this.Columns[this.trackColumnEdge].
Width
- offsetFromCenter);
5727
rectInsertionBar.X = Math.Min(GetColumnXFromIndex(this.trackColumnEdge) + this.Columns[this.trackColumnEdge].
Width
- offsetFromCenter,
14486
if (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.Fill && dataGridViewColumn.
Width
< minimumWidth)
14499
Debug.Assert(dataGridViewColumn.
Width
== minimumWidth);
20365
leftEdge -= this.Columns[this.ptCurrentCell.X].
Width
-1;
20368
this.Columns[this.ptCurrentCell.X].
Width
, this.Rows.SharedRow(this.ptCurrentCell.Y).GetHeight(this.ptCurrentCell.Y));
26177
xColumnRightEdge = GetColumnXFromIndex(columnIndex) - this.Columns[columnIndex].
Width
;
26180
xColumnRightEdge += this.Columns[firstDisplayedScrollingColumn].
Width
;
26196
xColumnRightEdge = GetColumnXFromIndex(columnIndex) + this.Columns[columnIndex].
Width
;
26199
xColumnRightEdge -= this.Columns[firstDisplayedScrollingColumn].
Width
;
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1425
preferredCellThickness = dataGridViewCell.GetPreferredHeight(rowIndex, dataGridViewColumn.
Width
);