GridButton.CalculateInitialContentsRect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
Parameters
- g
- Graphics
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- textFont
- Font
- bRtl
- Boolean
- sFormat
- StringFormat
- nStringWidth
- Int32
Returns
Applies to
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
Parameters
- g
- Graphics
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- textFont
- Font
- bRtl
- Boolean
- sFormat
- TextFormatFlags
- nStringWidth
- Int32