GridButton.CalculateInitialContentsRect Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
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
Parámetros
- g
- Graphics
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- textFont
- Font
- bRtl
- Boolean
- sFormat
- StringFormat
- nStringWidth
- Int32
Devoluciones
Se aplica a
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
Parámetros
- g
- Graphics
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- textFont
- Font
- bRtl
- Boolean
- sFormat
- TextFormatFlags
- nStringWidth
- Int32