Поделиться через


GridButton.CalculateInitialContentsRect Метод

Определение

Перегрузки

CalculateInitialContentsRect(Graphics, Rectangle, String, Bitmap, HorizontalAlignment, Font, Boolean, StringFormat, Int32)
CalculateInitialContentsRect(Graphics, Rectangle, String, Bitmap, HorizontalAlignment, Font, Boolean, TextFormatFlags, Int32)

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

Параметры

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

Параметры

text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
textFont
Font
bRtl
Boolean
sFormat
TextFormatFlags
nStringWidth
Int32

Возвращаемое значение

Применяется к