Version

PixelsToCharacterWidth256ths Method

Converts pixels to units of 1/256s of the average character width.
Syntax
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: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also