32 references to PropertyDefaultValue
System.Windows.Forms.Analyzers.CSharp (5)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.cs (4)
19
defaultValue:
PropertyDefaultValue
.EnableVisualStyles,
22
defaultValue:
PropertyDefaultValue
.UseCompatibleTextRendering,
101
highDpiMode =
PropertyDefaultValue
.DpiMode;
119
highDpiMode =
PropertyDefaultValue
.DpiMode;
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
34
float fontSize =
PropertyDefaultValue
.FontSize;
System.Windows.Forms.Analyzers.CSharp.Tests (27)
FontConverterTests.cs (7)
36
testData.Add(culture, $"Courier New", "Courier New",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Regular);
41
testData.Add(culture, $"Courier New{s_separator} style=Bold", "Courier New",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Bold);
48
testData.Add(culture, $"Arial{s_separator}", "Arial",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Regular);
50
testData.Add(culture, $"Courier New{s_separator} Style=Bold", "Courier New",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Bold); // FullFramework style keyword is case sensitive.
54
testData.Add(culture, $"11px{s_separator} Style=Bold", $"11px",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Bold);
55
testData.Add(culture, $"11px", "11px",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Regular);
56
testData.Add(culture, $"Style=Bold", "Style=Bold",
PropertyDefaultValue
.FontSize, (int)GraphicsUnit.Point, (int)FontStyle.Regular);
Generators\ApplicationConfigurationGenerator\ApplicationConfigurationInitializeBuilderTests.cs (19)
37
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
39
HighDpiMode:
PropertyDefaultValue
.DpiMode,
40
UseCompatibleTextRendering:
PropertyDefaultValue
.UseCompatibleTextRendering
60
HighDpiMode:
PropertyDefaultValue
.DpiMode,
61
UseCompatibleTextRendering:
PropertyDefaultValue
.UseCompatibleTextRendering
71
HighDpiMode:
PropertyDefaultValue
.DpiMode,
72
UseCompatibleTextRendering:
PropertyDefaultValue
.UseCompatibleTextRendering
81
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
83
HighDpiMode:
PropertyDefaultValue
.DpiMode,
92
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
94
HighDpiMode:
PropertyDefaultValue
.DpiMode,
104
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
106
HighDpiMode:
PropertyDefaultValue
.DpiMode,
115
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
117
HighDpiMode:
PropertyDefaultValue
.DpiMode,
126
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
128
HighDpiMode:
PropertyDefaultValue
.DpiMode,
137
EnableVisualStyles:
PropertyDefaultValue
.EnableVisualStyles,
139
HighDpiMode:
PropertyDefaultValue
.DpiMode,
ProjectFileReaderTests.cs (1)
177
Assert.Equal(
PropertyDefaultValue
.DpiMode, returnedValue);