GridButton.CalculateInitialContentsRect Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
Retornos
Aplica-se 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