2 writes to Part
System.Windows.Forms (2)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
142
Part
= part;
204
Part
= part;
31 references to Part
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);
285
Part
,
392
Part
,
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);
667
Part
,
690
Part
,
709
_lastHResult = PInvoke.GetThemeTextMetrics(HTHEME, hdc,
Part
, State, out TEXTMETRICW tm);
724
Part
,
758
Part
,
774
return PInvoke.IsThemeBackgroundPartiallyTransparent(HTHEME,
Part
, State);
System.Windows.Forms.Tests (4)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (4)
30
Assert.Equal(element.Part, renderer.
Part
);
64
Assert.Equal(element.Part, renderer.
Part
);
518
Assert.Equal(element.Part, renderer.
Part
);
539
Assert.Equal(element.Part, renderer.
Part
);