DataGridViewCell.MeasureTextSize メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
 構文
構文Public Shared Function MeasureTextSize ( _ graphics As Graphics, _ text As String, _ font As Font, _ flags As TextFormatFlags _ ) As Size
Dim graphics As Graphics Dim text As String Dim font As Font Dim flags As TextFormatFlags Dim returnValue As Size returnValue = DataGridViewCell.MeasureTextSize(graphics, text, font, flags)
public static Size MeasureTextSize ( Graphics graphics, string text, Font font, TextFormatFlags flags )
public: static Size MeasureTextSize ( Graphics^ graphics, String^ text, Font^ font, TextFormatFlags flags )
public static Size MeasureTextSize ( Graphics graphics, String text, Font font, TextFormatFlags flags )
public static function MeasureTextSize ( graphics : Graphics, text : String, font : Font, flags : TextFormatFlags ) : Size
戻り値
テキストの高さと幅を表す Size。
 例外
例外 解説
解説 プラットフォーム
プラットフォーム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.MeasureTextSize メソッドのページへのリンク

 
                             
                    


