Excel for UWP/WinRT
PixelsToTwips メソッド

画面ピクセル単位の測定値。
ピクセル単位の測定値をツイップ単位(1ポイントの 1/20)に変換します。
構文
'宣言
 
Public Shared Function PixelsToTwips( _
   ByVal pix As System.Double _
) As System.Integer
public static System.int PixelsToTwips( 
   System.double pix
)

パラメータ

pix
画面ピクセル単位の測定値。

戻り値の型

ツイップ単位の測定値。
解説

Excel は、測定値を解像度に依存しないツイップ(1ポイントの 1/20)という単位で格納します。一方、.NET コントロールは、通常、測定値をピクセル単位で表します。このメソッドを使用すると、現在の画面解像度を使用して、ピクセル単位の測定値をツイップ単位に簡単に変換できます。

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

C1XLBook クラス
C1XLBook メンバ
TwipsToPixels メソッド

Send Feedback