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