Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 1.39 KB

PowerPoint.DocumentWindow.PointsToScreenPixelsX.md

File metadata and controls

60 lines (35 loc) · 1.39 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
DocumentWindow.PointsToScreenPixelsX method (PowerPoint)
vbapp10.chm511027
vbapp10.chm511027
PowerPoint.DocumentWindow.PointsToScreenPixelsX
6b5f2f58-41af-3620-74f3-1c4ec3922fc2
06/08/2017
medium

DocumentWindow.PointsToScreenPixelsX method (PowerPoint)

Converts a horizontal measurement from points to pixels. Used to return a horizontal screen location for a text frame or shape. Returns the converted measurement as a Single.

Syntax

expression.PointsToScreenPixelsX (Points)

expression A variable that represents a DocumentWindow object.

Parameters

Name Required/Optional Data type Description
Points Required Single The horizontal measurement (in points) to be converted to pixels.

Return value

Single

Example

This example converts the width and height of the selected text frame bounding box from points to pixels, and returns the values to myXparm and myYparm.

With ActiveWindow
    myXparm = .PointsToScreenPixelsX _
        (.Selection.TextRange.BoundWidth)
    myYparm = .PointsToScreenPixelsY _
        (.Selection.TextRange.BoundHeight)
End With

See also

DocumentWindow Object

[!includeSupport and feedback]