C# Класс NetIde.Services.Shell.TaskDialog.AdjustControls

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetBestSize() публичный статический Метод

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.
Результат System.Drawing.Size

GetBestSize() публичный статический Метод

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
Результат System.Drawing.Size