title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
DocumentWindow.PointsToScreenPixelsY method (PowerPoint) |
vbapp10.chm511028 |
|
|
0a5a96c6-3e91-31c6-ee60-ca1f8481daf0 |
06/08/2017 |
medium |
Converts a vertical measurement from points to pixels. Used to return a vertical screen location for a text frame or shape. Returns the converted measurement as a Single.
expression.PointsToScreenPixelsY (Points)
expression A variable that represents a DocumentWindow object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Points | Required | Single | The vertical measurement (in points) to be converted to pixels. |
Single
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
[!includeSupport and feedback]