1 write to ClassName
System.Windows.Forms (1)
System\Windows\Forms\VisualStyles\VisualStyleElement.cs (1)
21
ClassName
= className.OrThrowIfNull();
47 references to ClassName
System.Windows.Forms (37)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
293
t_visualStyleRenderer = new VisualStyleRenderer(s_buttonElement.
ClassName
, s_buttonElement.Part, state);
297
t_visualStyleRenderer.SetParameters(s_buttonElement.
ClassName
, s_buttonElement.Part, state);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (3)
347
s_checkBoxElement.
ClassName
,
355
t_visualStyleRenderer = new VisualStyleRenderer(s_checkBoxElement.
ClassName
, part, state);
359
t_visualStyleRenderer.SetParameters(s_checkBoxElement.
ClassName
, part, state);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (3)
324
&& VisualStyleRenderer.IsCombinationDefined(s_radioElement.
ClassName
, VisualStyleElement.Button.RadioButton.HighContrastDisabledPart))
331
t_visualStyleRenderer = new VisualStyleRenderer(s_radioElement.
ClassName
, part, state);
335
t_visualStyleRenderer.SetParameters(s_radioElement.
ClassName
, part, state);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (2)
122
t_visualStyleRenderer = new VisualStyleRenderer(visualStyleElement.
ClassName
, visualStyleElement.Part, state);
126
t_visualStyleRenderer.SetParameters(visualStyleElement.
ClassName
, visualStyleElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (1)
27
DataGridViewButtonRenderer.SetParameters(s_buttonElement.
ClassName
, s_buttonElement.Part, buttonState);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (1)
27
CheckBoxRenderer.SetParameters(s_checkBoxElement.
ClassName
, s_checkBoxElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
40
VisualStyleRenderer.SetParameters(s_headerElement.
ClassName
, s_headerElement.Part, headerState);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellRenderer.cs (3)
49
t_visualStyleRenderer.SetParameters(s_comboBoxBorder.
ClassName
, s_comboBoxBorder.Part, s_comboBoxBorder.State);
81
t_visualStyleRenderer = new VisualStyleRenderer(visualStyleElement.
ClassName
, visualStyleElement.Part, state);
85
t_visualStyleRenderer.SetParameters(visualStyleElement.
ClassName
, visualStyleElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
27
VisualStyleRenderer.SetParameters(s_headerElement.
ClassName
, s_headerElement.Part, headerState);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (1)
27
VisualStyleRenderer.SetParameters(s_headerElement.
ClassName
, s_headerElement.Part, headerState);
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (3)
364
s_groupBoxElement.
ClassName
,
372
t_visualStyleRenderer = new VisualStyleRenderer(s_groupBoxElement.
ClassName
, part, state);
376
t_visualStyleRenderer.SetParameters(s_groupBoxElement.
ClassName
, part, state);
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (2)
156
t_visualStyleRenderer = new VisualStyleRenderer(element.
ClassName
, element.Part, state);
160
t_visualStyleRenderer.SetParameters(element.
ClassName
, element.Part, state);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (2)
92
t_visualStyleRenderer = new VisualStyleRenderer(s_textBoxElement.
ClassName
, s_textBoxElement.Part, state);
96
t_visualStyleRenderer.SetParameters(s_textBoxElement.
ClassName
, s_textBoxElement.Part, state);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (5)
387
vsRenderer.SetParameters(chevronElement.
ClassName
, chevronElement.Part, GetItemState(item));
539
vsRenderer.SetParameters(splitButtonPart.
ClassName
, splitButtonPart.Part, GetSplitButtonItemState(splitButton));
558
vsRenderer.SetParameters(splitButtonDropDownPart.
ClassName
, splitButtonDropDownPart.Part, GetSplitButtonDropDownItemState(splitButton));
655
vsRenderer.SetParameters(toolBarElement.
ClassName
, toolBarElement.Part, (int)state);
699
vsRenderer.SetParameters(separator.
ClassName
, separator.Part, GetItemState(item));
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (2)
210
t_visualStyleRenderer = new VisualStyleRenderer(element.
ClassName
, element.Part, state);
214
t_visualStyleRenderer.SetParameters(element.
ClassName
, element.Part, state);
System\Windows\Forms\Scrolling\ScrollBarRenderer.cs (2)
149
t_visualStyleRenderer = new VisualStyleRenderer(element.
ClassName
, element.Part, state);
153
t_visualStyleRenderer.SetParameters(element.
ClassName
, element.Part, state);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
80
return IsCombinationDefined(element.
ClassName
, element.Part);
126
public VisualStyleRenderer(VisualStyleElement element) : this(element.
ClassName
, element.Part, element.State)
190
SetParameters(element.
ClassName
, element.Part, element.State);
System.Windows.Forms.Tests (10)
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (2)
20
Assert.Same(className, element.
ClassName
);
653
Assert.Same(expectedClassName, element.
ClassName
);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (8)
28
VisualStyleRenderer renderer = new(element.
ClassName
, element.Part, element.State);
29
Assert.Equal(element.
ClassName
, renderer.Class);
55
Assert.Throws<ArgumentException>(() => new VisualStyleRenderer(element.
ClassName
, element.Part, element.State));
63
Assert.Equal(element.
ClassName
, renderer.Class);
516
renderer.SetParameters(element.
ClassName
, element.Part, element.State);
517
Assert.Equal(element.
ClassName
, renderer.Class);
529
Assert.Throws<ArgumentException>(() => renderer.SetParameters(element.
ClassName
, element.Part, element.State));
538
Assert.Equal(element.
ClassName
, renderer.Class);