GridButton.CalculateInitialContentsRect メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
CalculateInitialContentsRect(Graphics, Rectangle, String, Bitmap, HorizontalAlignment, Font, Boolean, StringFormat, Int32)
public:
static System::Drawing::Rectangle CalculateInitialContentsRect(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, System::Drawing::Font ^ textFont, bool bRtl, System::Drawing::StringFormat ^ % sFormat, [Runtime::InteropServices::Out] int % nStringWidth);
public static System.Drawing.Rectangle CalculateInitialContentsRect (System.Drawing.Graphics g, System.Drawing.Rectangle r, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, System.Drawing.Font textFont, bool bRtl, ref System.Drawing.StringFormat sFormat, out int nStringWidth);
static member CalculateInitialContentsRect : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * System.Drawing.Font * bool * StringFormat * int -> System.Drawing.Rectangle
Public Shared Function CalculateInitialContentsRect (g As Graphics, r As Rectangle, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, textFont As Font, bRtl As Boolean, ByRef sFormat As StringFormat, ByRef nStringWidth As Integer) As Rectangle
パラメーター
- g
- Graphics
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- textFont
- Font
- bRtl
- Boolean
- sFormat
- StringFormat
- nStringWidth
- Int32
戻り値
適用対象
CalculateInitialContentsRect(Graphics, Rectangle, String, Bitmap, HorizontalAlignment, Font, Boolean, TextFormatFlags, Int32)
public:
static System::Drawing::Rectangle CalculateInitialContentsRect(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, System::Drawing::Font ^ textFont, bool bRtl, System::Windows::Forms::TextFormatFlags % sFormat, [Runtime::InteropServices::Out] int % nStringWidth);
public static System.Drawing.Rectangle CalculateInitialContentsRect (System.Drawing.Graphics g, System.Drawing.Rectangle r, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, System.Drawing.Font textFont, bool bRtl, ref System.Windows.Forms.TextFormatFlags sFormat, out int nStringWidth);
static member CalculateInitialContentsRect : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * System.Drawing.Font * bool * TextFormatFlags * int -> System.Drawing.Rectangle
Public Shared Function CalculateInitialContentsRect (g As Graphics, r As Rectangle, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, textFont As Font, bRtl As Boolean, ByRef sFormat As TextFormatFlags, ByRef nStringWidth As Integer) As Rectangle
パラメーター
- g
- Graphics
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- textFont
- Font
- bRtl
- Boolean
- sFormat
- TextFormatFlags
- nStringWidth
- Int32