MeasureString
Graphics.MeasureString method
Mesure la chaîne de texte spécifiée avec les paramètres spécifiés
public SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat)
| Paramètre | Taper | La description |
|---|---|---|
| text | String | Le texte à mesurer. |
| font | Font | La police à mesurer. |
| layoutArea | SizeF | La zone de mise en page. |
| stringFormat | StringFormat | Le format de chaîne. |
Return_Value
Taille en pixels de la chaîne de texte mesurée
Voir également
- struct SizeF
- class Font
- class StringFormat
- class Graphics
- espace de noms Aspose.Imaging
- Assemblée Aspose.Imaging