|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
DataGridViewCell.MeasureTextWidth Método
.NET Framework 2.0
Assembly: System.Windows.Forms (em System.Windows.Forms. dll)
public static int MeasureTextWidth( Graphics graphics, string text, Font font, int maxHeight, TextFormatFlags flags )
Parâmetros
- graphics
- Tipo: System.Drawing.Graphics
The Graphics used to render the text.
- text
- Tipo: System.String
O texto a ser medida.
- font
- Tipo: System.Drawing.Font
The Font applied to the text.
- maxHeight
- Tipo: System.Int32
A altura máxima do texto.
- flags
- Tipo: System.Windows.Forms.TextFormatFlags
A bitwise combination of TextFormatFlags values to apply to the text.
| Exceção | Condição |
|---|---|
| ArgumentNullException | |
| ArgumentOutOfRangeException | |
| InvalidEnumArgumentException |