20 references to ThemeSizeType
System.Windows.Forms (20)
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
238
return visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.Draw, hWnd);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
225
return visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.Draw, hWnd);
winforms\Managed\System\WinForms\SafeNativeMethods.cs (1)
811
public static extern int GetThemePartSize(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] NativeMethods.COMRECT prc, System.Windows.Forms.VisualStyles.
ThemeSizeType
eSize, [Out] NativeMethods.SIZE psz);
winforms\Managed\System\WinForms\ScrollBarRenderer.cs (2)
183
return visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.True);
196
return visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.True);
winforms\Managed\System\WinForms\StatusBar.cs (2)
104
elementSize = vsRenderer.GetPartSize(Graphics.FromHwndInternal(this.Handle),
ThemeSizeType
.True);
110
elementSize = vsRenderer.GetPartSize(Graphics.FromHwndInternal(this.Handle),
ThemeSizeType
.True);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (4)
220
return (visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.True));
233
return (visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.True));
246
return (visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.True));
259
return (visualStyleRenderer.GetPartSize(g,
ThemeSizeType
.True));
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (9)
737
public Size GetPartSize(IDeviceContext dc,
ThemeSizeType
type) {
741
internal Size GetPartSize(IDeviceContext dc,
ThemeSizeType
type, IntPtr hWnd) {
747
if (!ClientUtils.IsEnumValid(type, (int)type, (int)
ThemeSizeType
.Minimum, (int)
ThemeSizeType
.Draw)) {
748
throw new InvalidEnumArgumentException("type", (int)type, typeof(
ThemeSizeType
));
774
public Size GetPartSize(IDeviceContext dc, Rectangle bounds,
ThemeSizeType
type) {
780
if (!ClientUtils.IsEnumValid(type, (int)type, (int)
ThemeSizeType
.Minimum, (int)
ThemeSizeType
.Draw))
782
throw new InvalidEnumArgumentException("type", (int)type, typeof(
ThemeSizeType
));