110 references to DataGridViewTriState
System.Windows.Forms (110)
winforms\Managed\System\WinForms\DataGridView.cs (6)
1954
defaultStyle.WrapModeInternal =
DataGridViewTriState
.True;
2510
this.defaultCellStyle.WrapMode ==
DataGridViewTriState
.NotSet)
2540
if (this.defaultCellStyle.WrapMode ==
DataGridViewTriState
.NotSet)
2542
defaultCellStyleTmp.WrapModeInternal =
DataGridViewTriState
.False;
2581
defaultCellStyle.WrapModeInternal =
DataGridViewTriState
.False;
2643
defaultStyle.WrapModeInternal =
DataGridViewTriState
.True;
winforms\Managed\System\WinForms\DataGridViewBand.cs (11)
627
public virtual
DataGridViewTriState
Resizable
634
return ((this.State & DataGridViewElementStates.Resizable) != 0) ?
DataGridViewTriState
.True :
DataGridViewTriState
.False;
638
return this.DataGridView.AllowUserToResizeColumns ?
DataGridViewTriState
.True :
DataGridViewTriState
.False;
642
return
DataGridViewTriState
.NotSet;
647
DataGridViewTriState
oldResizable = this.Resizable;
648
if (value ==
DataGridViewTriState
.NotSet)
655
if (((this.State & DataGridViewElementStates.Resizable) != 0) != (value ==
DataGridViewTriState
.True))
657
if (value ==
DataGridViewTriState
.True)
663
Debug.Assert(value ==
DataGridViewTriState
.False, "TriState only supports NotSet, True, False");
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
368
if (cellStyle.WrapMode ==
DataGridViewTriState
.True && formattedString.Length > 1 &&
387
if (cellStyle.WrapMode ==
DataGridViewTriState
.True && formattedString.Length > 1 &&
409
if (cellStyle.WrapMode ==
DataGridViewTriState
.True && formattedString.Length > 1)
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
243
defaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet ||
winforms\Managed\System\WinForms\DataGridViewCell.cs (13)
659
if (this.owningRow != null && (this.owningRow.DataGridView == null || this.RowIndex >= 0) && this.owningRow.Resizable ==
DataGridViewTriState
.True)
667
return this.owningColumn.Resizable ==
DataGridViewTriState
.True;
2077
if (this.owningRow.GetResizable(rowIndex) ==
DataGridViewTriState
.True)
2104
if (this.owningRow.GetResizable(rowIndex) ==
DataGridViewTriState
.True ||
2105
this.owningColumn.Resizable ==
DataGridViewTriState
.True)
2477
if (cellStyle != null && cellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
2481
else if (rowStyle != null && rowStyle.WrapMode !=
DataGridViewTriState
.NotSet)
2485
else if (this.DataGridView.RowsDefaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet &&
2486
(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.WrapMode ==
DataGridViewTriState
.NotSet))
2490
else if (rowIndex % 2 == 1 && this.DataGridView.AlternatingRowsDefaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
2494
else if (columnStyle != null && columnStyle.WrapMode !=
DataGridViewTriState
.NotSet)
2500
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
2609
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (12)
554
DefaultValue(
DataGridViewTriState
.NotSet),
558
public
DataGridViewTriState
WrapMode
566
return (
DataGridViewTriState
) wrap;
568
return
DataGridViewTriState
.NotSet;
573
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
DataGridViewTriState
.NotSet, (int)
DataGridViewTriState
.False)){
574
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DataGridViewTriState
));
580
internal
DataGridViewTriState
WrapModeInternal
584
Debug.Assert(value >=
DataGridViewTriState
.NotSet && value <=
DataGridViewTriState
.False);
646
if (dataGridViewCellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
889
if (this.WrapMode !=
DataGridViewTriState
.NotSet)
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
348
defaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet ||
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
324
defaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet ||
727
if (columnStyle != null && columnStyle.WrapMode !=
DataGridViewTriState
.NotSet)
733
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
913
public override
DataGridViewTriState
Resizable
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (1)
576
((DataGridViewColumn)this.items[columnIndex]).Resizable ==
DataGridViewTriState
.True)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (6)
470
if (cellStyle != null && cellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
474
else if (columnHeadersStyle.WrapMode !=
DataGridViewTriState
.NotSet)
480
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
554
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)
607
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)
656
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2583
int verticalTextMarginTop = cellStyle.WrapMode ==
DataGridViewTriState
.True ? DATAGRIDVIEWCOMBOBOXCELL_verticalTextMarginTopWithWrapping : DATAGRIDVIEWCOMBOBOXCELL_verticalTextMarginTopWithoutWrapping;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (4)
201
return (this.OwningRow.Resizable ==
DataGridViewTriState
.True) || (this.DataGridView != null && this.DataGridView.RowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing);
207
return (this.OwningColumn.Resizable ==
DataGridViewTriState
.True) ||
343
if (this.OwningRow.GetResizable(rowIndex) ==
DataGridViewTriState
.True || (this.DataGridView != null && this.DataGridView.RowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing))
364
if (this.OwningColumn.Resizable ==
DataGridViewTriState
.True ||
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
340
defaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet ||
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
673
if (cellStyle.WrapMode ==
DataGridViewTriState
.True && formattedString.Length > 1)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (12)
2972
if (cellStyle != null && cellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
2976
else if (columnHeadersStyle != null && columnHeadersStyle.WrapMode !=
DataGridViewTriState
.NotSet)
2982
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
7065
if (!RowIsResizable(rowIndex) && dataGridViewCell.OwningColumn.Resizable !=
DataGridViewTriState
.True)
9468
if (dataGridViewColumn.Resizable ==
DataGridViewTriState
.True &&
9501
if (dataGridViewColumn.Resizable ==
DataGridViewTriState
.True &&
9649
if (dataGridViewColumn.Resizable ==
DataGridViewTriState
.True &&
9677
if (dataGridViewColumn.Resizable ==
DataGridViewTriState
.True &&
12337
Debug.Assert(this.Columns[columnIndex].Resizable ==
DataGridViewTriState
.True);
16453
Debug.Assert(this.Columns[columnIndex].Resizable ==
DataGridViewTriState
.True);
16489
Debug.Assert(this.Rows[rowIndex].Resizable ==
DataGridViewTriState
.True);
22459
if (dataGridViewColumn != null && dataGridViewColumn.Resizable ==
DataGridViewTriState
.True &&
winforms\Managed\System\WinForms\DataGridViewRow.cs (15)
384
public override
DataGridViewTriState
Resizable
828
if (cellStyle != null && cellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
832
else if (rowHeadersStyle != null && rowHeadersStyle.WrapMode !=
DataGridViewTriState
.NotSet)
838
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
1065
if (rowStyle != null && rowStyle.WrapMode !=
DataGridViewTriState
.NotSet)
1069
else if (rowsDefaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.WrapMode ==
DataGridViewTriState
.NotSet))
1073
else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
1079
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
1447
internal
DataGridViewTriState
GetResizable(int rowIndex)
1451
return ((GetState(rowIndex) & DataGridViewElementStates.Resizable) != 0) ?
DataGridViewTriState
.True :
DataGridViewTriState
.False;
1455
return this.DataGridView.AllowUserToResizeRows ?
DataGridViewTriState
.True :
DataGridViewTriState
.False;
1459
return
DataGridViewTriState
.NotSet;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (2)
2455
dataGridViewRow.Resizable = value ?
DataGridViewTriState
.True :
DataGridViewTriState
.False;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
596
if (cellStyle != null && cellStyle.WrapMode !=
DataGridViewTriState
.NotSet)
600
else if (rowHeadersStyle.WrapMode !=
DataGridViewTriState
.NotSet)
606
Debug.Assert(dataGridViewStyle.WrapMode !=
DataGridViewTriState
.NotSet);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (6)
192
Debug.Assert(cellStyle.WrapMode !=
DataGridViewTriState
.NotSet);
264
if (cellStyle.WrapMode ==
DataGridViewTriState
.False)
448
if (cellStyle.WrapMode ==
DataGridViewTriState
.True && formattedString.Length > 1)
518
int verticalTextMarginTop = cellStyle.WrapMode ==
DataGridViewTriState
.True ? DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginTopWithWrapping : DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginTopWithoutWrapping;
541
textBox.AcceptsReturn = textBox.Multiline = dataGridViewCellStyle.WrapMode ==
DataGridViewTriState
.True;
755
int verticalTextMarginTop = cellStyle.WrapMode ==
DataGridViewTriState
.True ? DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginTopWithWrapping : DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginTopWithoutWrapping;
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (2)
146
if (dataGridViewCellStyle.WrapMode ==
DataGridViewTriState
.True)
151
this.repositionOnValueChange = (dataGridViewCellStyle.WrapMode ==
DataGridViewTriState
.True && (dataGridViewCellStyle.Alignment & anyTop) == 0);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (5)
65
DataGridViewTriState
wrapMode)
149
if (wrapMode ==
DataGridViewTriState
.False)
192
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)
246
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)
270
if (cellStyle.WrapMode ==
DataGridViewTriState
.True)