95 references to Name
System.Drawing.Common.Tests (18)
System\Drawing\FontConverterTests.cs (4)
52
Assert.Equal(expectedName, font.
Name
);
88
nameof(Font.
Name
),
124
Assert.Equal(font.
Name
, newFont.
Name
);
System\Drawing\FontTests.cs (11)
301
Assert.Equal(family.Name, font.
Name
);
320
Assert.Equal(family.Name, copy.
Name
);
399
Assert.Equal(font.
Name
, clone.FontFamily.Name);
647
Assert.NotEmpty(font.
Name
);
820
Assert.Equal(font.
Name
, newFont.
Name
);
833
Assert.NotEqual(font.
Name
, newFont.
Name
);
858
Assert.Equal(expectedName, font.
Name
);
885
if (font1.
Name
.Equals(font2.
Name
, StringComparison.OrdinalIgnoreCase))
System\Drawing\SystemFontsTests.cs (3)
31
Assert.Equal(font.
Name
, otherFont.
Name
);
89
Assert.Equal(windowsFontName, font.
Name
);
System.Windows.Forms (7)
System\Windows\Forms\ActiveX\AxHost.cs (3)
3682
fixed (char* n = font.
Name
)
3712
: new(f.
Name
, f.SizeInPoints, f.Style, GraphicsUnit.Point, f.GdiCharSet, f.GdiVerticalFont);
3736
fixed (char* n = font.
Name
)
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
35
fixed (char* n = font.
Name
)
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
113
if (!source.
Name
.Equals(target->Name.ToStringAndFree()))
115
target->Name = new(source.
Name
);
System\Windows\Forms\Help\Help.cs (1)
89
string captionFont = $"{font.
Name
}, {font.SizeInPoints}, , {(font.Bold ? "BOLD" : "")}{(font.Italic ? "ITALIC" : "")}{(font.Underline ? "UNDERLINE" : "")}";
System.Windows.Forms.Primitives.Tests (2)
Interop\User32\SystemParametersInfoWTests.cs (2)
35
Assert.Equal(expected.
Name
, actual.
Name
);
System.Windows.Forms.Tests (68)
System\Windows\Forms\ApplicationTests.cs (2)
641
Assert.Equal(expected.
Name
, actual.
Name
);
System\Windows\Forms\AxHostTests.cs (16)
1449
Assert.Equal(font.
Name
, iFont.Name.ToStringAndFree());
1460
Assert.Equal(font.
Name
, result.
Name
);
1466
Assert.Equal(font.
Name
, result.
Name
);
1479
Assert.Equal(font.
Name
, iFont.Name.ToStringAndFree());
1489
Assert.Equal(font.
Name
, result.
Name
);
1495
Assert.Equal(font.
Name
, result.
Name
);
1524
Assert.Equal(font.
Name
, iFont.Name.ToStringAndFree());
1535
Assert.Equal(font.
Name
, result.
Name
);
1546
Assert.Equal(font.
Name
, iFont.Name.ToStringAndFree());
1556
Assert.Equal(font.
Name
, result.
Name
);
System\Windows\Forms\CheckBoxRendererTests.cs (3)
78
State.FontFace(SystemFonts.DefaultFont.
Name
)
115
State.FontFace(SystemFonts.DefaultFont.
Name
)
149
State.FontFace(SystemFonts.DefaultFont.
Name
)
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
48
Assert.Equal("Arial", font.
Name
);
77
using Font newFont = new(font.
Name
, 20.0f);
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (3)
27
Assert.Equal(font.
Name
, name.ToString());
31
Assert.Equal(font.
Name
, outFont.
Name
);
System\Windows\Forms\DataGridViewTests.Rendering.cs (11)
176
Validate.TextOut(column1.HeaderText, stateValidators: State.FontFace(customColumnHeaderFont.
Name
))),
178
Validate.TextOut(column2.HeaderText, stateValidators: State.FontFace(customColumnHeaderFont.
Name
))),
182
Validate.TextOut("Row 1", stateValidators: State.FontFace(customRowHeaderFont.
Name
))),
184
Validate.TextOut(nameof(DataGridView.DefaultCellStyle), stateValidators: State.FontFace(customCellStyleFont.
Name
))),
186
Validate.TextOut(customCellStyleFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.
Name
))),
190
Validate.TextOut("Row 2", stateValidators: State.FontFace(customRowHeaderFont.
Name
))),
192
Validate.TextOut(nameof(DataGridView.ColumnHeadersDefaultCellStyle), stateValidators: State.FontFace(customCellStyleFont.
Name
))),
194
Validate.TextOut(customColumnHeaderFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.
Name
))),
198
Validate.TextOut("Row 3", stateValidators: State.FontFace(customRowHeaderFont.
Name
))),
200
Validate.TextOut(nameof(DataGridView.RowHeadersDefaultCellStyle), stateValidators: State.FontFace(customCellStyleFont.
Name
))),
202
Validate.TextOut(customRowHeaderFont.ToString(), stateValidators: State.FontFace(customCellStyleFont.
Name
))),
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
86
Assert.Equal(SystemFonts.MenuFont.
Name
, bag.Font.
Name
);
125
Assert.Equal(SystemFonts.MenuFont.
Name
, bag.Font.
Name
);
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (5)
42
Validate.TextOut("Misc", new(25, 4, 25, 14), stateValidators: State.FontFace(Control.DefaultFont.
Name
))),
48
Validate.TextOut(pt.X.ToString(), new(145, 22, 5, 14), stateValidators: State.FontFace(Control.DefaultFont.
Name
))),
51
Validate.TextOut(nameof(Point.X), new(25, 23, 6, 14), stateValidators: State.FontFace(Control.DefaultFont.
Name
))),
57
Validate.TextOut(pt.Y.ToString(), new(145, 41, 5, 14), stateValidators: State.FontFace(Control.DefaultFont.
Name
))),
60
Validate.TextOut(nameof(Point.Y), new(25, 42, 6, 14), stateValidators: State.FontFace(Control.DefaultFont.
Name
))),
System\Windows\Forms\RadioButtonRendererTests.cs (2)
72
State.FontFace(SystemFonts.DefaultFont.
Name
)
138
State.FontFace(SystemFonts.DefaultFont.
Name
)
System\Windows\Forms\RichTextBoxTests.cs (9)
1626
Assert.Equal(Control.DefaultFont.
Name
, format1.FaceName.ToString());
4829
Assert.Equal(value?.
Name
, result1.
Name
);
4838
Assert.Equal(value?.
Name
, result2.
Name
);
4862
Assert.Equal(value.
Name
, result1.
Name
);
4874
Assert.Equal(value.
Name
, result2.
Name
);
System\Windows\Forms\TextBoxRendererTests.cs (2)
79
State.FontFace(SystemFonts.DefaultFont.
Name
)
115
State.FontFace(SystemFonts.DefaultFont.
Name
)
System\Windows\Forms\TextRendererTests.cs (4)
582
State.FontFace(SystemFonts.DefaultFont.
Name
),
686
State.FontFace(SystemFonts.DefaultFont.
Name
),
709
State.FontFace(SystemFonts.DefaultFont.
Name
),
785
State.FontFace(SystemFonts.DefaultFont.
Name
),
Text\FontMetrics.cs (5)
19
if (font.
Name
!= family)
38
if (font.
Name
!= family)
59
if (font.
Name
!= family)
77
if (font.
Name
!= family)
134
if (font.
Name
!= family)