1 write to Part
System.Windows.Forms (1)
System\Windows\Forms\VisualStyles\VisualStyleElement.cs (1)
22Part = part;
41 references to Part
System.Windows.Forms (31)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
293t_visualStyleRenderer = new VisualStyleRenderer(s_buttonElement.ClassName, s_buttonElement.Part, state); 297t_visualStyleRenderer.SetParameters(s_buttonElement.ClassName, s_buttonElement.Part, state);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
343int part = s_checkBoxElement.Part;
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (1)
321int part = s_radioElement.Part;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (2)
122t_visualStyleRenderer = new VisualStyleRenderer(visualStyleElement.ClassName, visualStyleElement.Part, state); 126t_visualStyleRenderer.SetParameters(visualStyleElement.ClassName, visualStyleElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (1)
27DataGridViewButtonRenderer.SetParameters(s_buttonElement.ClassName, s_buttonElement.Part, buttonState);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (1)
27CheckBoxRenderer.SetParameters(s_checkBoxElement.ClassName, s_checkBoxElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
40VisualStyleRenderer.SetParameters(s_headerElement.ClassName, s_headerElement.Part, headerState);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellRenderer.cs (3)
49t_visualStyleRenderer.SetParameters(s_comboBoxBorder.ClassName, s_comboBoxBorder.Part, s_comboBoxBorder.State); 81t_visualStyleRenderer = new VisualStyleRenderer(visualStyleElement.ClassName, visualStyleElement.Part, state); 85t_visualStyleRenderer.SetParameters(visualStyleElement.ClassName, visualStyleElement.Part, state);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
27VisualStyleRenderer.SetParameters(s_headerElement.ClassName, s_headerElement.Part, headerState);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (1)
27VisualStyleRenderer.SetParameters(s_headerElement.ClassName, s_headerElement.Part, headerState);
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
360int part = s_groupBoxElement.Part;
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (2)
156t_visualStyleRenderer = new VisualStyleRenderer(element.ClassName, element.Part, state); 160t_visualStyleRenderer.SetParameters(element.ClassName, element.Part, state);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (2)
92t_visualStyleRenderer = new VisualStyleRenderer(s_textBoxElement.ClassName, s_textBoxElement.Part, state); 96t_visualStyleRenderer.SetParameters(s_textBoxElement.ClassName, s_textBoxElement.Part, state);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (5)
387vsRenderer.SetParameters(chevronElement.ClassName, chevronElement.Part, GetItemState(item)); 539vsRenderer.SetParameters(splitButtonPart.ClassName, splitButtonPart.Part, GetSplitButtonItemState(splitButton)); 558vsRenderer.SetParameters(splitButtonDropDownPart.ClassName, splitButtonDropDownPart.Part, GetSplitButtonDropDownItemState(splitButton)); 655vsRenderer.SetParameters(toolBarElement.ClassName, toolBarElement.Part, (int)state); 699vsRenderer.SetParameters(separator.ClassName, separator.Part, GetItemState(item));
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (2)
210t_visualStyleRenderer = new VisualStyleRenderer(element.ClassName, element.Part, state); 214t_visualStyleRenderer.SetParameters(element.ClassName, element.Part, state);
System\Windows\Forms\Scrolling\ScrollBarRenderer.cs (2)
149t_visualStyleRenderer = new VisualStyleRenderer(element.ClassName, element.Part, state); 153t_visualStyleRenderer.SetParameters(element.ClassName, element.Part, state);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
80return IsCombinationDefined(element.ClassName, element.Part); 126public VisualStyleRenderer(VisualStyleElement element) : this(element.ClassName, element.Part, element.State) 190SetParameters(element.ClassName, element.Part, element.State);
System.Windows.Forms.Tests (10)
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (2)
21Assert.Equal(part, element.Part); 654Assert.Equal(expectedPart, element.Part);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (8)
28VisualStyleRenderer renderer = new(element.ClassName, element.Part, element.State); 30Assert.Equal(element.Part, renderer.Part); 55Assert.Throws<ArgumentException>(() => new VisualStyleRenderer(element.ClassName, element.Part, element.State)); 64Assert.Equal(element.Part, renderer.Part); 516renderer.SetParameters(element.ClassName, element.Part, element.State); 518Assert.Equal(element.Part, renderer.Part); 529Assert.Throws<ArgumentException>(() => renderer.SetParameters(element.ClassName, element.Part, element.State)); 539Assert.Equal(element.Part, renderer.Part);