Application.PointsToPicas method (Word)
Converts a measurement from points to picas (1 pica = 12 points). Returns the converted measurement as a Single.
Syntax
expression. PointsToPicas
( _Points_
)
expression A variable that represents an Application object. Optional.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Points | Required | Single | The measurement, in points. |
Return value
Single
Example
This example converts 36 points to the corresponding number of picas.
MsgBox PointsToPicas(36) & " picas"
This example converts the value of the variable sngData
(a measurement in points) to centimeters, inches, lines, millimeters, or picas, depending on the value of the variable intUnit
(a value from 1 through 5 that indicates the resulting unit of measurement).
Function ConvertPoints(ByVal intUnit As Integer, _
sngData As Single) As Single
Select Case intUnit
Case 1
ConvertPoints = PointsToCentimeters(sngData)
Case 2
ConvertPoints = PointsToInches(sngData)
Case 3
ConvertPoints = PointsToLines(sngData)
Case 4
ConvertPoints = PointsToMillimeters(sngData)
Case 5
ConvertPoints = PointsToPicas(sngData)
Case Else
Error 5
End Select
End Function
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기