55 references to VisualStyleInformation
System.Windows.Forms (16)
System\Windows\Forms\Application.cs (2)
669
if (!
VisualStyleInformation
.IsSupportedByOS)
679
if (
VisualStyleInformation
.IsSupportedByOS)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
19303
using var pen =
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
407
string themeFilename = Path.GetFileName(VisualStyles.
VisualStyleInformation
.ThemeFilename);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2328
using var pen =
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6896
using var pen =
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2911
using var pen =
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
827
using var pen =
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\Controls\ToolStrips\ProfessionalColors.cs (1)
219
t_colorScheme =
VisualStyleInformation
.ColorScheme;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (2)
1372
string colorScheme =
VisualStyleInformation
.ColorScheme;
1373
string themeFileName = Path.GetFileName(
VisualStyleInformation
.ThemeFilename);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3152
using var pen =
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2025
using var borderPen = VisualStyles.
VisualStyleInformation
.TextControlBorder.GetCachedPenScope();
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
38
return (
VisualStyleInformation
.IsEnabledByUser &&
89
throw new InvalidOperationException(
VisualStyleInformation
.IsEnabledByUser
174
? throw new InvalidOperationException(
VisualStyleInformation
.IsEnabledByUser
System.Windows.Forms.Tests (39)
System\Windows\Forms\VisualStyles\VisualStyleInformationTests.cs (39)
14
string author =
VisualStyleInformation
.Author;
16
Assert.Equal(author,
VisualStyleInformation
.Author);
23
string scheme =
VisualStyleInformation
.ColorScheme;
25
Assert.Equal(scheme,
VisualStyleInformation
.ColorScheme);
32
string scheme =
VisualStyleInformation
.ColorScheme;
35
Assert.NotEqual(scheme,
VisualStyleInformation
.Size);
36
Assert.NotEqual(scheme,
VisualStyleInformation
.Version);
45
string company =
VisualStyleInformation
.Company;
47
Assert.Equal(company,
VisualStyleInformation
.Company);
54
Color color =
VisualStyleInformation
.ControlHighlightHot;
56
Assert.Equal(color,
VisualStyleInformation
.ControlHighlightHot);
62
string copyright =
VisualStyleInformation
.Copyright;
64
Assert.Equal(copyright,
VisualStyleInformation
.Copyright);
71
string description =
VisualStyleInformation
.Description;
73
Assert.Equal(description,
VisualStyleInformation
.Description);
80
string displayName =
VisualStyleInformation
.DisplayName;
82
Assert.Equal(displayName,
VisualStyleInformation
.DisplayName);
89
bool enabled =
VisualStyleInformation
.IsEnabledByUser;
90
Assert.Equal(enabled,
VisualStyleInformation
.IsEnabledByUser);
96
bool supported =
VisualStyleInformation
.IsSupportedByOS;
98
Assert.Equal(supported,
VisualStyleInformation
.IsSupportedByOS);
104
int depth =
VisualStyleInformation
.MinimumColorDepth;
106
Assert.Equal(depth,
VisualStyleInformation
.MinimumColorDepth);
112
string size =
VisualStyleInformation
.Size;
114
Assert.Equal(size,
VisualStyleInformation
.Size);
121
string size =
VisualStyleInformation
.Size;
124
Assert.NotEqual(size,
VisualStyleInformation
.ColorScheme);
125
Assert.NotEqual(size,
VisualStyleInformation
.Version);
134
bool supported =
VisualStyleInformation
.SupportsFlatMenus;
135
Assert.Equal(supported,
VisualStyleInformation
.SupportsFlatMenus);
141
Color color =
VisualStyleInformation
.TextControlBorder;
143
Assert.Equal(color,
VisualStyleInformation
.TextControlBorder);
149
string url =
VisualStyleInformation
.Url;
151
Assert.Equal(url,
VisualStyleInformation
.Url);
158
string version =
VisualStyleInformation
.Version;
160
Assert.Equal(version,
VisualStyleInformation
.Version);
167
string version =
VisualStyleInformation
.Version;
170
Assert.NotEqual(version,
VisualStyleInformation
.ColorScheme);
171
Assert.NotEqual(version,
VisualStyleInformation
.Size);