Application.PointsToInches メソッド (Publisher)

測定を ポイント からインチ (1 インチ = 72 ポイント) に変換します。 変換した単位を単精度浮動小数点型 (Single) の値として取得します。

構文

PointsToInches ()

expressionApplication オブジェクトを 表す変数。

パラメーター

名前 必須 / オプション データ型 説明
必須 単精度浮動小数点型 (Single) インチ単位に変換するポイント単位の値を指定します。

戻り値

1 行

注釈

インチ単位からポイント単位に変換するには、 InchesToPoints メソッドを使用します。

次の使用例は、ユーザーが入力したポイント単位の値を、インチ単位に変更します。

Dim strInput As String 
Dim strOutput As String 
 
Do While True 
 ' Get input from user. 
 strInput = InputBox( _ 
 Prompt:="Enter measurement in points (0 to cancel): ", _ 
 Default:="0") 
 
 ' Exit the loop if user enters zero. 
 If Val(strInput) = 0 Then Exit Do 
 
 ' Evaluate and display result. 
 strOutput = Trim(strInput) & " points = " _ 
 & Format(Application _ 
 .PointsToInches(Value:=Val(strInput)), _ 
 "0.00") & " in" 
 
 MsgBox strOutput 
Loop 

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。