Visual Basic Reference

TwipsPerPixelX, TwipsPerPixelY Properties

See Also    Example    Applies To

Return the number of logical twips per pixel for an object measured horizontally (TwipsPerPixelX) or vertically (TwipsPerPixelY).

Syntax

object**.TwipsPerPixelX**

object**.TwipsPerPixelY**

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

Windows API routines generally require measurements in pixels. You can use these properties to convert measurements quickly without changing an object's ScaleMode property setting.