Version

PixelsToCharacterWidth256ths Method

Converts pixels to units of 1/256s of the average character width.
Syntax
'Declaration
 
Public Function PixelsToCharacterWidth256ths( _
   ByVal pixels As Double _
) As Double
public double PixelsToCharacterWidth256ths( 
   double pixels
)

Parameters

pixels
The number of pixels.

Return Value

The number of units of 1/256s of the average character width equivalent to the pixels value.
Remarks

The units of 1/256s of the average character width are based on the font height of the normal style.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also