C# Class NetIde.Services.Shell.TaskDialog.AdjustControls

Mostra file Open project: netide/netide Class Usage Examples

Public Methods

Method Description
GetBestSize ( Control control, string text, Rectangle rect ) : Size

Measure a multiline string for a Control http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html

GetBestSize ( Graphics gr, string text, Rectangle rect, bool textboxControl ) : Size

Measure a multiline string

Method Details

GetBestSize() public static method

Measure a multiline string for a Control http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html
public static GetBestSize ( Control control, string text, Rectangle rect ) : Size
control System.Windows.Forms.Control control
text string string to measure
rect System.Drawing.Rectangle Original rect. The width will be taken as fixed.
return System.Drawing.Size

GetBestSize() public static method

Measure a multiline string
public static GetBestSize ( Graphics gr, string text, Rectangle rect, bool textboxControl ) : Size
gr System.Drawing.Graphics Graphics
text string string to measure
rect System.Drawing.Rectangle Original rect. The width will be taken as fixed.
textboxControl bool True if you want to measure the string for a textbox control
return System.Drawing.Size