DocumentWindow.PointsToScreenPixelsY Method
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.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function PointsToScreenPixelsY ( _
Points As Single _
) As Integer
'Usage
Dim instance As DocumentWindow
Dim Points As Single
Dim returnValue As Integer
returnValue = instance.PointsToScreenPixelsY(Points)
int PointsToScreenPixelsY(
float Points
)
Parameters
- Points
Type: System.Single
The vertical measurement (in points) to be converted to pixels.
Return Value
Type: System.Int32
Single
Examples
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