2 writes to State
System.Windows.Forms (2)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
143
State
= state;
205
State
= state;
31 references to State
System.Windows.Forms (27)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (27)
229
_lastHResult = PInvoke.DrawThemeBackground(htheme, dc, Part,
State
, bounds, null);
233
_lastHResult = PInvoke.DrawThemeBackground(HTHEME, dc, Part,
State
, bounds, null);
256
_lastHResult = PInvoke.DrawThemeBackground(htheme, dc, Part,
State
, bounds, clipRectangle);
260
_lastHResult = PInvoke.DrawThemeBackground(HTHEME, dc, Part,
State
, bounds, clipRectangle);
286
State
,
393
State
,
420
_lastHResult = PInvoke.GetThemeBackgroundContentRect(HTHEME, dc, Part,
State
, bounds, out RECT rect);
437
_lastHResult = PInvoke.GetThemeBackgroundExtent(HTHEME, hdc, Part,
State
, contentBounds, out RECT extents);
457
_lastHResult = PInvoke.GetThemeBackgroundRegion(HTHEME, hdc, Part,
State
, bounds, &hrgn);
481
_lastHResult = PInvoke.GetThemeBool(HTHEME, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, out BOOL value);
493
_lastHResult = PInvoke.GetThemeColor(HTHEME, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, out COLORREF color);
505
_lastHResult = PInvoke.GetThemeEnumValue(HTHEME, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, out int value);
520
_lastHResult = PInvoke.GetThemeFilename(HTHEME, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, pFilename, filename.Length);
537
_lastHResult = PInvoke.GetThemeFont(this, hdc, Part,
State
, (int)prop, out LOGFONT logfont);
564
_lastHResult = PInvoke.GetThemeInt(HTHEME, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, out int value);
587
_lastHResult = PInvoke.GetThemePartSize(htheme, dc, Part,
State
, null, (THEMESIZE)type, out SIZE dpiSize);
591
_lastHResult = PInvoke.GetThemePartSize(HTHEME, dc, Part,
State
, null, (THEMESIZE)type, out SIZE size);
606
_lastHResult = PInvoke.GetThemePartSize(HTHEME, hdc, Part,
State
, bounds, (THEMESIZE)type, out SIZE size);
618
_lastHResult = PInvoke.GetThemePosition(HTHEME, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, out Point point);
633
_lastHResult = PInvoke.GetThemeMargins(HTHEME, hdc, Part,
State
, (THEME_PROPERTY_SYMBOL_ID)prop, null, out MARGINS margins);
649
_lastHResult = PInvoke.GetThemeString(HTHEME, Part,
State
, (int)prop, pString, aString.Length);
668
State
,
691
State
,
709
_lastHResult = PInvoke.GetThemeTextMetrics(HTHEME, hdc, Part,
State
, out TEXTMETRICW tm);
725
State
,
759
State
,
774
return PInvoke.IsThemeBackgroundPartiallyTransparent(HTHEME, Part,
State
);
System.Windows.Forms.Tests (4)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (4)
31
Assert.Equal(element.State, renderer.
State
);
65
Assert.Equal(element.State, renderer.
State
);
519
Assert.Equal(element.State, renderer.
State
);
540
Assert.Equal(element.State, renderer.
State
);