.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Units.PixelsToTwips Method

Name Parameters Description
PixelsToTwips(Rectangle, Single, Single) static rect, dpiX, dpiY Converts a rectangle from pixels to twips.
PixelsToTwips(Size, Single, Single) static size, dpiX, dpiY Converts measurements from pixels to twips.
PixelsToTwips(Int32, Single) static val, dpi Converts a measurement from pixels to twips. Returns the converted measurement as an Integer.