1 instantiation of SIZE
System.Private.Windows.Core (1)
Windows.Win32.SIZE.g.cs (1)
53 public static implicit operator SIZE(global::System.Drawing.Size value) => new SIZE(value);
125 references to SIZE
System.Private.Windows.Core (7)
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (4)
555 /// <inheritdoc cref="GetViewportExtEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.SIZE*)"/> 557 internal static unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.SIZE lpsize) 559 fixed (winmdroot.Foundation.SIZE* lpsizeLocal = &lpsize) 577 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.SIZE* lpsize);
Windows.Win32.SHDRAGIMAGE.g.cs (1)
35 internal winmdroot.Foundation.SIZE sizeDragImage;
Windows.Win32.SIZE.g.cs (2)
51 public static implicit operator global::System.Drawing.Size(SIZE value) => new global::System.Drawing.Size(value.cx, value.cy); 53 public static implicit operator SIZE(global::System.Drawing.Size value) => new SIZE(value);
System.Private.Windows.GdiPlus (3)
Windows.Win32.ENHMETAHEADER3.g.cs (2)
51 internal winmdroot.Foundation.SIZE szlDevice; 53 internal winmdroot.Foundation.SIZE szlMillimeters;
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
40/// the viewport origin are applied (<see cref="PInvokeCore.GetViewportExtEx(HDC, SIZE*)"/>). The clipping
System.Windows.Forms (36)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
385return PInvoke.GetTextExtentPoint32W(hdc.HDC, &item, 1, (SIZE*)psizle);
System\Windows\Forms\ActiveX\AxHost.cs (4)
1127HRESULT hr = oleObject.Value->SetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size); 1135oleObject.Value->GetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size).AssertSuccess(); 1136oleObject.Value->SetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size).AssertSuccess(); 1146oleObject.Value->GetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size).AssertSuccess();
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
408HRESULT IOleInPlaceSite.Interface.Scroll(SIZE scrollExtant) => HRESULT.S_FALSE;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
465PInvoke.SetWindowExtEx(hdcDraw, _control.Width, _control.Height, (SIZE*)&sWindowExt); 467PInvoke.SetViewportExtEx(hdcDraw, p2.X, p2.Y, (SIZE*)&sViewportExt); 691/// <inheritdoc cref="IOleObject.GetExtent(DVASPECT, SIZE*)"/> 1674/// <inheritdoc cref="IOleObject.SetExtent(DVASPECT, SIZE*)"/>
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (10)
265/// <inheritdoc cref="IOleObject.SetExtent(DVASPECT, SIZE*)"/> 266HRESULT IOleObject.Interface.SetExtent(DVASPECT dwDrawAspect, SIZE* psizel) 277/// <inheritdoc cref="IOleObject.GetExtent(DVASPECT, SIZE*)"/> 278HRESULT IOleObject.Interface.GetExtent(DVASPECT dwDrawAspect, SIZE* psizel) 489/// <inheritdoc cref="IQuickActivate.SetContentExtent(SIZE*)"/> 490HRESULT IQuickActivate.Interface.SetContentExtent(SIZE* pSizel) 501/// <inheritdoc cref="IQuickActivate.GetContentExtent(SIZE*)"/> 502HRESULT IQuickActivate.Interface.GetContentExtent(SIZE* pSizel) 619/// <inheritdoc cref="IOleObject.GetExtent(DVASPECT, SIZE*)"/> 620HRESULT IViewObject2.Interface.GetExtent(DVASPECT dwDrawAspect, int lindex, DVTARGETDEVICE* ptd, SIZE* lpsizel)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
460return PInvoke.GetTextExtentPoint32W(hdc, &item, 1, (SIZE*)pSize);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
466return PInvoke.GetTextExtentPoint32W(hdc, &item, 1, (SIZE*)pSize);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (4)
1087HRESULT hr = _axOleObject!.SetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&sz); 1095_axOleObject.GetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&sz); 1096_axOleObject.SetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&sz); 1105_axOleObject!.GetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
277HRESULT IOleInPlaceSite.Interface.Scroll(SIZE scrollExtant) => HRESULT.S_FALSE;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
123PInvoke.GetTextExtentPoint32W(dc, pItemText, itemText.Length, (SIZE*)(void*)&size);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
167SIZE originalExtents = default;
System\Windows\Forms\Form.cs (2)
4618SIZE* size = (SIZE*)m.LParamInternal;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
732PInvoke.GetTextExtentPoint32W(dc, ps, FontMeasureString.Length, (SIZE*)(void*)&size);
System\Windows\Forms\Rendering\TextExtensions.cs (1)
294PInvoke.GetTextExtentPoint32W(hdc, pText, text.Length, (SIZE*)(void*)&size);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
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);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
94PInvoke.GetTextExtentPoint32W(hdc, ps, s.Length, (SIZE*)(void*)&textSize);
System.Windows.Forms.Primitives (78)
Windows.Win32.IOleInPlaceSite.g.cs (5)
276 private static winmdroot.Foundation.HRESULT Scroll(IOleInPlaceSite* pThis, winmdroot.Foundation.SIZE scrollExtant) 303 public winmdroot.Foundation.HRESULT Scroll(winmdroot.Foundation.SIZE scrollExtant) 305 return ((delegate *unmanaged [Stdcall]<IOleInPlaceSite*,winmdroot.Foundation.SIZE ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IOleInPlaceSite*)Unsafe.AsPointer(ref this), scrollExtant); 529 internal delegate *unmanaged [Stdcall]<IOleInPlaceSite*,winmdroot.Foundation.SIZE ,winmdroot.Foundation.HRESULT> Scroll_10; 595winmdroot.Foundation.HRESULT Scroll(winmdroot.Foundation.SIZE scrollExtant);
Windows.Win32.IOleObject.g.cs (16)
596 /// <inheritdoc cref="SetExtent(winmdroot.System.Com.DVASPECT, winmdroot.Foundation.SIZE*)"/> 597 internal unsafe winmdroot.Foundation.HRESULT SetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, in winmdroot.Foundation.SIZE psizel) 599 fixed (winmdroot.Foundation.SIZE* psizelLocal = &psizel) 609 private static winmdroot.Foundation.HRESULT SetExtent(IOleObject* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, winmdroot.Foundation.SIZE* psizel) 637 public unsafe winmdroot.Foundation.HRESULT SetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, winmdroot.Foundation.SIZE* psizel) 639 return ((delegate *unmanaged [Stdcall]<IOleObject*,winmdroot.System.Com.DVASPECT ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IOleObject*)Unsafe.AsPointer(ref this), dwDrawAspect, psizel); 642 /// <inheritdoc cref="GetExtent(winmdroot.System.Com.DVASPECT, winmdroot.Foundation.SIZE*)"/> 643 internal unsafe winmdroot.Foundation.HRESULT GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, out winmdroot.Foundation.SIZE psizel) 645 fixed (winmdroot.Foundation.SIZE* psizelLocal = &psizel) 655 private static winmdroot.Foundation.HRESULT GetExtent(IOleObject* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, winmdroot.Foundation.SIZE* psizel) 683 public unsafe winmdroot.Foundation.HRESULT GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, winmdroot.Foundation.SIZE* psizel) 685 return ((delegate *unmanaged [Stdcall]<IOleObject*,winmdroot.System.Com.DVASPECT ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IOleObject*)Unsafe.AsPointer(ref this), dwDrawAspect, psizel); 935 internal delegate *unmanaged [Stdcall]<IOleObject*,winmdroot.System.Com.DVASPECT ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT> SetExtent_18; 937 internal delegate *unmanaged [Stdcall]<IOleObject*,winmdroot.System.Com.DVASPECT ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT> GetExtent_19; 1036 unsafe winmdroot.Foundation.HRESULT SetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, winmdroot.Foundation.SIZE* psizel); 1039 unsafe winmdroot.Foundation.HRESULT GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, winmdroot.Foundation.SIZE* psizel);
Windows.Win32.IQuickActivate.g.cs (16)
101 /// <inheritdoc cref="SetContentExtent(winmdroot.Foundation.SIZE*)"/> 102 internal unsafe winmdroot.Foundation.HRESULT SetContentExtent(in winmdroot.Foundation.SIZE pSizel) 104 fixed (winmdroot.Foundation.SIZE* pSizelLocal = &pSizel) 114 private static winmdroot.Foundation.HRESULT SetContentExtent(IQuickActivate* pThis, winmdroot.Foundation.SIZE* pSizel) 137 public unsafe winmdroot.Foundation.HRESULT SetContentExtent(winmdroot.Foundation.SIZE* pSizel) 139 return ((delegate *unmanaged [Stdcall]<IQuickActivate*,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IQuickActivate*)Unsafe.AsPointer(ref this), pSizel); 142 /// <inheritdoc cref="GetContentExtent(winmdroot.Foundation.SIZE*)"/> 143 internal unsafe winmdroot.Foundation.HRESULT GetContentExtent(out winmdroot.Foundation.SIZE pSizel) 145 fixed (winmdroot.Foundation.SIZE* pSizelLocal = &pSizel) 155 private static winmdroot.Foundation.HRESULT GetContentExtent(IQuickActivate* pThis, winmdroot.Foundation.SIZE* pSizel) 181 public unsafe winmdroot.Foundation.HRESULT GetContentExtent(winmdroot.Foundation.SIZE* pSizel) 183 return ((delegate *unmanaged [Stdcall]<IQuickActivate*,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IQuickActivate*)Unsafe.AsPointer(ref this), pSizel); 215 internal delegate *unmanaged [Stdcall]<IQuickActivate*,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT> SetContentExtent_5; 217 internal delegate *unmanaged [Stdcall]<IQuickActivate*,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT> GetContentExtent_6; 249 unsafe winmdroot.Foundation.HRESULT SetContentExtent(winmdroot.Foundation.SIZE* pSizel); 252 unsafe winmdroot.Foundation.HRESULT GetContentExtent(winmdroot.Foundation.SIZE* pSizel);
Windows.Win32.IViewObject2.g.cs (8)
231 /// <inheritdoc cref="GetExtent(winmdroot.System.Com.DVASPECT, int, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Foundation.SIZE*)"/> 232 internal unsafe void GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, out winmdroot.Foundation.SIZE lpsizel) 234 fixed (winmdroot.Foundation.SIZE* lpsizelLocal = &lpsizel) 243 private static winmdroot.Foundation.HRESULT GetExtent(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Foundation.SIZE* lpsizel) 274 public unsafe void GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Foundation.SIZE* lpsizel) 276 ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, ptd, lpsizel).ThrowOnFailure(); 318 internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT> GetExtent_10; 369 unsafe winmdroot.Foundation.HRESULT GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Foundation.SIZE* lpsizel);
Windows.Win32.LVTILEVIEWINFO.g.cs (1)
43 internal winmdroot.Foundation.SIZE sizeTile;
Windows.Win32.PInvoke.GDI32.dll.g.cs (10)
402 /// <inheritdoc cref="GetTextExtentPoint32W(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PCWSTR, int, winmdroot.Foundation.SIZE*)"/> 404 internal static unsafe winmdroot.Foundation.BOOL GetTextExtentPoint32W(winmdroot.Graphics.Gdi.HDC hdc, string lpString, int c, out winmdroot.Foundation.SIZE psizl) 406 fixed (winmdroot.Foundation.SIZE* psizlLocal = &psizl) 431 internal static extern unsafe winmdroot.Foundation.BOOL GetTextExtentPoint32W(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PCWSTR lpString, int c, winmdroot.Foundation.SIZE* psizl); 455 /// <inheritdoc cref="GetViewportExtEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.SIZE*)"/> 457 internal static unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.SIZE lpsize) 459 fixed (winmdroot.Foundation.SIZE* lpsizeLocal = &lpsize) 477 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.SIZE* lpsize); 600 internal static extern unsafe winmdroot.Foundation.BOOL SetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] winmdroot.Foundation.SIZE* lpsz); 635 internal static extern unsafe winmdroot.Foundation.BOOL SetWindowExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] winmdroot.Foundation.SIZE* lpsz);
Windows.Win32.PInvoke.UXTHEME.dll.g.cs (4)
783 /// <inheritdoc cref="GetThemePartSize(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.UI.Controls.THEMESIZE, winmdroot.Foundation.SIZE*)"/> 785 internal static unsafe winmdroot.Foundation.HRESULT GetThemePartSize(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT? prc, winmdroot.UI.Controls.THEMESIZE eSize, out winmdroot.Foundation.SIZE psz) 787 fixed (winmdroot.Foundation.SIZE* pszLocal = &psz) 828 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemePartSize(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.THEMESIZE eSize, winmdroot.Foundation.SIZE* psz);
Windows.Win32.REOBJECT.g.cs (1)
67 internal winmdroot.Foundation.SIZE sizel;
Windows.Win32.System_Ole_IOleObject_Extensions.g.cs (6)
69 /// <inheritdoc cref="winmdroot.System.Ole.IOleObject.Interface.SetExtent(winmdroot.System.Com.DVASPECT, winmdroot.Foundation.SIZE*)"/> 70 internal static unsafe winmdroot.Foundation.HRESULT SetExtent(this winmdroot.System.Ole.IOleObject.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, in winmdroot.Foundation.SIZE psizel) 72 fixed (winmdroot.Foundation.SIZE* psizelLocal = &psizel) 79 /// <inheritdoc cref="winmdroot.System.Ole.IOleObject.Interface.GetExtent(winmdroot.System.Com.DVASPECT, winmdroot.Foundation.SIZE*)"/> 80 internal static unsafe winmdroot.Foundation.HRESULT GetExtent(this winmdroot.System.Ole.IOleObject.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, out winmdroot.Foundation.SIZE psizel) 82 fixed (winmdroot.Foundation.SIZE* psizelLocal = &psizel)
Windows.Win32.System_Ole_IQuickActivate_Extensions.g.cs (6)
36 /// <inheritdoc cref="winmdroot.System.Ole.IQuickActivate.Interface.SetContentExtent(winmdroot.Foundation.SIZE*)"/> 37 internal static unsafe winmdroot.Foundation.HRESULT SetContentExtent(this winmdroot.System.Ole.IQuickActivate.Interface @this, in winmdroot.Foundation.SIZE pSizel) 39 fixed (winmdroot.Foundation.SIZE* pSizelLocal = &pSizel) 46 /// <inheritdoc cref="winmdroot.System.Ole.IQuickActivate.Interface.GetContentExtent(winmdroot.Foundation.SIZE*)"/> 47 internal static unsafe winmdroot.Foundation.HRESULT GetContentExtent(this winmdroot.System.Ole.IQuickActivate.Interface @this, out winmdroot.Foundation.SIZE pSizel) 49 fixed (winmdroot.Foundation.SIZE* pSizelLocal = &pSizel)
Windows.Win32.System_Ole_IViewObject2_Extensions.g.cs (3)
52 /// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.GetExtent(winmdroot.System.Com.DVASPECT, int, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Foundation.SIZE*)"/> 53 internal static unsafe winmdroot.Foundation.HRESULT GetExtent(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, out winmdroot.Foundation.SIZE lpsizel) 55 fixed (winmdroot.Foundation.SIZE* lpsizelLocal = &lpsizel)
Windows\Win32\PInvoke.GetTextExtentPoint32.cs (2)
10/// <inheritdoc cref="GetTextExtentPoint32W(HDC, PCWSTR, int, SIZE*)"/> 15BOOL result = GetTextExtentPoint32W(hdc.Handle, pString, c, (SIZE*)(void*)&size);