20 references to ThemeSizeType
System.Windows.Forms (20)
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
238return visualStyleRenderer.GetPartSize(g, ThemeSizeType.Draw, hWnd);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
225return visualStyleRenderer.GetPartSize(g, ThemeSizeType.Draw, hWnd);
winforms\Managed\System\WinForms\SafeNativeMethods.cs (1)
811public 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)
183return visualStyleRenderer.GetPartSize(g, ThemeSizeType.True); 196return visualStyleRenderer.GetPartSize(g, ThemeSizeType.True);
winforms\Managed\System\WinForms\StatusBar.cs (2)
104elementSize = vsRenderer.GetPartSize(Graphics.FromHwndInternal(this.Handle), ThemeSizeType.True); 110elementSize = vsRenderer.GetPartSize(Graphics.FromHwndInternal(this.Handle), ThemeSizeType.True);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (4)
220return (visualStyleRenderer.GetPartSize(g, ThemeSizeType.True)); 233return (visualStyleRenderer.GetPartSize(g, ThemeSizeType.True)); 246return (visualStyleRenderer.GetPartSize(g, ThemeSizeType.True)); 259return (visualStyleRenderer.GetPartSize(g, ThemeSizeType.True));
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (9)
737public Size GetPartSize(IDeviceContext dc, ThemeSizeType type) { 741internal Size GetPartSize(IDeviceContext dc, ThemeSizeType type, IntPtr hWnd) { 747if (!ClientUtils.IsEnumValid(type, (int)type, (int)ThemeSizeType.Minimum, (int)ThemeSizeType.Draw)) { 748throw new InvalidEnumArgumentException("type", (int)type, typeof(ThemeSizeType)); 774public Size GetPartSize(IDeviceContext dc, Rectangle bounds, ThemeSizeType type) { 780if (!ClientUtils.IsEnumValid(type, (int)type, (int)ThemeSizeType.Minimum, (int)ThemeSizeType.Draw)) 782throw new InvalidEnumArgumentException("type", (int)type, typeof(ThemeSizeType));