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

Afficher le fichier Open project: netide/netide Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Drawing.Size

GetBestSize() public static méthode

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
Résultat System.Drawing.Size