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