Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / MeasureRotatedText Method
The GrapeCity.Documents.Text.TextLayout to measure.
The text rotation angle, in degrees. The expected range is [-90, +90].
If false, text lines are stacked horizontally along the top and bottom sides of rect. If true, the lines are stacked vertically along the left and right sides of the rectangle.
The target rectangle for the text.
Alignment of the text in the target rectangle.

In This Topic
    MeasureRotatedText Method
    In This Topic
    Syntax
    'Declaration
     
    Public Function MeasureRotatedText( _
       ByVal textLayout As TextLayout, _
       ByVal angle As System.Integer, _
       ByVal verticalStacking As System.Boolean, _
       ByVal rect As System.Drawing.RectangleF, _
       ByVal alignment As RotatedTextAlignment _
    ) As System.Drawing.RectangleF
    public System.Drawing.RectangleF MeasureRotatedText( 
       TextLayout textLayout,
       System.int angle,
       System.bool verticalStacking,
       System.Drawing.RectangleF rect,
       RotatedTextAlignment alignment
    )

    Parameters

    textLayout
    The GrapeCity.Documents.Text.TextLayout to measure.
    angle
    The text rotation angle, in degrees. The expected range is [-90, +90].
    verticalStacking
    If false, text lines are stacked horizontally along the top and bottom sides of rect. If true, the lines are stacked vertically along the left and right sides of the rectangle.
    rect
    The target rectangle for the text.
    alignment
    Alignment of the text in the target rectangle.

    Return Value

    The rectangle occupied by the rotated text.
    See Also