Ejemplo n.º 1
0
 /// <summary>
 /// Measures the specified string when drawn with the specified
 /// Font object and formatted with the specified StringFormat object.
 /// </summary>
 /// <param name="text">String to measure.</param>
 /// <param name="font">Font object defines the text format of the string.</param>
 /// <returns>This method returns a SizeF structure that represents the size, in pixels, of the string specified in the text parameter as drawn with the font parameter and the stringFormat parameter.</returns>
 internal SizeF MeasureString(
     string text,
     Font font
     )
 {
     return(RenderingObject.MeasureString(text, font));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Measures the specified string when drawn with the specified
 /// Font object and formatted with the specified StringFormat object.
 /// </summary>
 /// <param name="text">String to measure.</param>
 /// <param name="font">Font object defines the text format of the string.</param>
 /// <param name="layoutArea">SizeF structure that specifies the maximum layout area for the text.</param>
 /// <param name="stringFormat">StringFormat object that represents formatting information, such as line spacing, for the string.</param>
 /// <returns>This method returns a SizeF structure that represents the size, in pixels, of the string specified in the text parameter as drawn with the font parameter and the stringFormat parameter.</returns>
 internal SizeF MeasureString(
     string text,
     Font font,
     SizeF layoutArea,
     StringFormat stringFormat
     )
 {
     return(RenderingObject.MeasureString(text, font, layoutArea, stringFormat));
 }
Ejemplo n.º 3
0
 public SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat, out int charactersFitted, out int linesFilled)
 {
     return(RenderingObject.MeasureString(text, font, layoutArea, stringFormat, out charactersFitted, out linesFilled));
 }