33 writes to Font
System.Windows.Forms (33)
winforms\Managed\System\WinForms\DataGridView.cs (4)
1952
defaultStyle.
Font
= base.Font;
2533
defaultCellStyleTmp.
Font
= base.Font;
2579
defaultCellStyle.
Font
= base.Font;
2641
defaultStyle.
Font
= base.Font;
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
2320
inheritedCellStyleTmp.
Font
= cellStyle.Font;
2324
inheritedCellStyleTmp.
Font
= rowStyle.Font;
2329
inheritedCellStyleTmp.
Font
= this.DataGridView.RowsDefaultCellStyle.Font;
2333
inheritedCellStyleTmp.
Font
= this.DataGridView.AlternatingRowsDefaultCellStyle.Font;
2337
inheritedCellStyleTmp.
Font
= columnStyle.Font;
2341
inheritedCellStyleTmp.
Font
= dataGridViewStyle.Font;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (2)
70
this.
Font
= dataGridViewCellStyle.Font;
624
this.
Font
= dataGridViewCellStyle.Font;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
674
inheritedCellStyleTmp.
Font
= columnStyle.Font;
678
inheritedCellStyleTmp.
Font
= dataGridViewStyle.Font;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
393
inheritedCellStyleTmp.
Font
= cellStyle.Font;
397
inheritedCellStyleTmp.
Font
= columnHeadersStyle.Font;
401
inheritedCellStyleTmp.
Font
= dataGridViewStyle.Font;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
2895
inheritedCellStyle.
Font
= cellStyle.Font;
2899
inheritedCellStyle.
Font
= columnHeadersStyle.Font;
2903
inheritedCellStyle.
Font
= dataGridViewStyle.Font;
15598
this.ColumnHeadersDefaultCellStyle.
Font
= base.Font;
15607
this.RowHeadersDefaultCellStyle.
Font
= base.Font;
15616
this.DefaultCellStyle.
Font
= base.Font;
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
751
inheritedCellStyle.
Font
= cellStyle.Font;
755
inheritedCellStyle.
Font
= rowHeadersStyle.Font;
759
inheritedCellStyle.
Font
= dataGridViewStyle.Font;
961
inheritedRowStyle.
Font
= rowStyle.Font;
966
inheritedRowStyle.
Font
= rowsDefaultCellStyle.Font;
970
inheritedRowStyle.
Font
= alternatingRowsDefaultCellStyle.Font;
974
inheritedRowStyle.
Font
= dataGridViewStyle.Font;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
519
inheritedCellStyleTmp.
Font
= cellStyle.Font;
523
inheritedCellStyleTmp.
Font
= rowHeadersStyle.Font;
527
inheritedCellStyleTmp.
Font
= dataGridViewStyle.Font;
116 references to Font
System.Windows.Forms (116)
winforms\Managed\System\WinForms\DataGridView.cs (2)
2508
this.defaultCellStyle.
Font
== null ||
2531
if (this.defaultCellStyle.
Font
== null)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (9)
373
cellStyle.
Font
,
380
preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags).Width,
393
cellStyle.
Font
,
402
cellStyle.
Font
,
411
preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, formattedString, cellStyle.
Font
, 5.0F, flags);
415
preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags);
964
cellStyle.
Font
,
993
cellStyle.
Font
,
1040
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
237
defaultCellStyle.
Font
!= null ||
winforms\Managed\System\WinForms\DataGridViewCell.cs (14)
2318
if (cellStyle != null && cellStyle.
Font
!= null)
2320
inheritedCellStyleTmp.Font = cellStyle.
Font
;
2322
else if (rowStyle != null && rowStyle.
Font
!= null)
2324
inheritedCellStyleTmp.Font = rowStyle.
Font
;
2326
else if (this.DataGridView.RowsDefaultCellStyle.
Font
!= null &&
2327
(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.
Font
== null))
2329
inheritedCellStyleTmp.Font = this.DataGridView.RowsDefaultCellStyle.
Font
;
2331
else if (rowIndex % 2 == 1 && this.DataGridView.AlternatingRowsDefaultCellStyle.
Font
!= null)
2333
inheritedCellStyleTmp.Font = this.DataGridView.AlternatingRowsDefaultCellStyle.
Font
;
2335
else if (columnStyle != null && columnStyle.
Font
!= null)
2337
inheritedCellStyleTmp.Font = columnStyle.
Font
;
2341
inheritedCellStyleTmp.Font = dataGridViewStyle.
Font
;
2611
return DataGridViewCell.MeasureTextHeight(g, text, cellStyle.
Font
, maxWidth, flags, out widthTruncated);
2615
Size size = DataGridViewCell.MeasureTextSize(g, text, cellStyle.
Font
, flags);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (11)
70
this.Font = dataGridViewCellStyle.
Font
;
221
Font f = this.
Font
;
228
(f != null && value != null && !f.Equals(this.
Font
)))
622
if (dataGridViewCellStyle.
Font
!= null)
624
this.Font = dataGridViewCellStyle.
Font
;
686
dgvcs.
Font
!= this.
Font
||
725
(this.
Font
== null ? 1 : this.
Font
.GetHashCode()),
853
if (this.
Font
!= null)
859
sb.Append(" Font=" + this.
Font
.ToString());
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
1477
cellStyle.
Font
,
1525
cellStyle.
Font
,
1569
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
342
defaultCellStyle.
Font
!= null ||
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
318
defaultCellStyle.
Font
!= null ||
672
if (columnStyle != null && columnStyle.
Font
!= null)
674
inheritedCellStyleTmp.Font = columnStyle.
Font
;
678
inheritedCellStyleTmp.Font = dataGridViewStyle.
Font
;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (13)
391
if (cellStyle != null && cellStyle.
Font
!= null)
393
inheritedCellStyleTmp.Font = cellStyle.
Font
;
395
else if (columnHeadersStyle.
Font
!= null)
397
inheritedCellStyleTmp.Font = columnHeadersStyle.
Font
;
401
inheritedCellStyleTmp.Font = dataGridViewStyle.
Font
;
558
cellStyle.
Font
,
567
cellStyle.
Font
,
619
cellStyle.
Font
,
632
cellStyle.
Font
,
644
cellStyle.
Font
,
658
preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, valStr, cellStyle.
Font
, 5.0F, flags);
662
preferredSize = DataGridViewCell.MeasureTextSize(graphics, valStr, cellStyle.
Font
, flags);
993
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
1057
return DataGridViewCell.MeasureTextHeight(graphics, " ", cellStyle.
Font
, System.Int32.MaxValue, TextFormatFlags.Default) + adjustment;
1448
preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedValue, cellStyle.
Font
, flags);
1452
preferredSize = DataGridViewCell.MeasureTextSize(graphics, " ", cellStyle.
Font
, flags);
2618
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewComboBoxEditingControl.cs (1)
131
this.Font = dataGridViewCellStyle.
Font
;
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
334
defaultCellStyle.
Font
!= null ||
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (7)
686
cellStyle.
Font
,
697
cellStyle.
Font
,
706
cellStyle.
Font
,
719
preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags).Width,
726
DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags).Height);
731
preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags);
1056
LinkUtilities.EnsureLinkFonts(cellStyle.
Font
, this.LinkBehavior, ref linkFont, ref hoverFont);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
2893
if (cellStyle != null && cellStyle.
Font
!= null)
2895
inheritedCellStyle.Font = cellStyle.
Font
;
2897
else if (columnHeadersStyle.
Font
!= null)
2899
inheritedCellStyle.Font = columnHeadersStyle.
Font
;
2903
inheritedCellStyle.Font = dataGridViewStyle.
Font
;
15596
this.ColumnHeadersDefaultCellStyle.
Font
!= base.Font)
15605
this.RowHeadersDefaultCellStyle.
Font
!= base.Font)
15614
this.DefaultCellStyle.
Font
!= base.Font)
winforms\Managed\System\WinForms\DataGridViewRow.cs (13)
749
if (cellStyle != null && cellStyle.
Font
!= null)
751
inheritedCellStyle.Font = cellStyle.
Font
;
753
else if (rowHeadersStyle.
Font
!= null)
755
inheritedCellStyle.Font = rowHeadersStyle.
Font
;
759
inheritedCellStyle.Font = dataGridViewStyle.
Font
;
959
if (rowStyle != null && rowStyle.
Font
!= null)
961
inheritedRowStyle.Font = rowStyle.
Font
;
963
else if (rowsDefaultCellStyle.
Font
!= null &&
964
(rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.
Font
== null))
966
inheritedRowStyle.Font = rowsDefaultCellStyle.
Font
;
968
else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.
Font
!= null)
970
inheritedRowStyle.Font = alternatingRowsDefaultCellStyle.
Font
;
974
inheritedRowStyle.Font = dataGridViewStyle.
Font
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (7)
517
if (cellStyle != null && cellStyle.
Font
!= null)
519
inheritedCellStyleTmp.Font = cellStyle.
Font
;
521
else if (rowHeadersStyle.
Font
!= null)
523
inheritedCellStyleTmp.Font = rowHeadersStyle.
Font
;
527
inheritedCellStyleTmp.Font = dataGridViewStyle.
Font
;
981
cellStyle.
Font
,
1013
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (8)
278
preferredHeight = DataGridViewCell.MeasureTextHeight(g, editedFormattedValue, cellStyle.
Font
, originalWidth, flags);
456
cellStyle.
Font
,
467
cellStyle.
Font
,
476
cellStyle.
Font
,
489
preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags).Width,
496
DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags).Height);
501
preferredSize = DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.
Font
, flags);
772
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
133
this.Font = dataGridViewCellStyle.
Font
;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
364
cellStyle.
Font
,
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (7)
194
preferredWidth = DataGridViewCell.MeasureTextWidth(graphics, val, cellStyle.
Font
, maxHeight, flags);
198
preferredWidth = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.
Font
, flags).Width;
248
minHeightContent = DataGridViewCell.MeasureTextHeight(graphics, val, cellStyle.
Font
, allowedWidth, flags);
252
minHeightContent = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.
Font
, flags).Height;
272
preferredSize = DataGridViewCell.MeasureTextPreferredSize(graphics, val, cellStyle.
Font
, 5.0F, flags);
276
preferredSize = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.
Font
, flags);
312
return GetTextBounds(cellBounds, text, flags, cellStyle, cellStyle.
Font
);