12 references to IsElementDefined
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
407
VisualStyleRenderer.
IsElementDefined
(VisualStyleElement.ComboBox.ReadOnlyButton.Normal);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (8)
57
if (t_renderer is null && VisualStyleRenderer.
IsElementDefined
(VisualStyleElement.ToolBar.Button.Normal))
218
else if (ToolStripManager.VisualStylesEnabled && VisualStyleRenderer.
IsElementDefined
(VisualStyleElement.Rebar.Band.Normal))
282
if (ToolStripManager.VisualStylesEnabled && VisualStyleRenderer.
IsElementDefined
(VisualStyleElement.Rebar.Gripper.Normal))
383
if (ToolStripManager.VisualStylesEnabled && VisualStyleRenderer.
IsElementDefined
(VisualStyleElement.Rebar.Chevron.Normal))
533
&& VisualStyleRenderer.
IsElementDefined
(splitButtonDropDownPart)
534
&& VisualStyleRenderer.
IsElementDefined
(splitButtonPart))
652
&& VisualStyleRenderer.
IsElementDefined
(toolBarElement))
696
&& (VisualStyleRenderer.
IsElementDefined
(separator)))
System.Windows.Forms.Tests (3)
System\Windows\Forms\ProgressBarRendererTest.cs (1)
79
bool isElementDefined = VisualStyleRenderer.
IsElementDefined
(styleElement);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (2)
108
Assert.Equal(expected, VisualStyleRenderer.
IsElementDefined
(element));
114
Assert.Throws<ArgumentNullException>("element", () => VisualStyleRenderer.
IsElementDefined
(null));