DataGridViewCell.MeasureTextWidth メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Public Shared Function MeasureTextWidth ( _ graphics As Graphics, _ text As String, _ font As Font, _ maxHeight As Integer, _ flags As TextFormatFlags _ ) As Integer
Dim graphics As Graphics Dim text As String Dim font As Font Dim maxHeight As Integer Dim flags As TextFormatFlags Dim returnValue As Integer returnValue = DataGridViewCell.MeasureTextWidth(graphics, text, font, maxHeight, flags)
public static int MeasureTextWidth ( Graphics graphics, string text, Font font, int maxHeight, TextFormatFlags flags )
public: static int MeasureTextWidth ( Graphics^ graphics, String^ text, Font^ font, int maxHeight, TextFormatFlags flags )
public static int MeasureTextWidth ( Graphics graphics, String text, Font font, int maxHeight, TextFormatFlags flags )
public static function MeasureTextWidth ( graphics : Graphics, text : String, font : Font, maxHeight : int, flags : TextFormatFlags ) : int
戻り値
テキストの幅 (ピクセル単位)。


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DataGridViewCell.MeasureTextWidth メソッドのページへのリンク