In This Topic
Draws rotated text inside a slanted rectangle.
Note that the original will be changed by this method. If necessary, create a clone in advance.
Also note that the values of the following properties are ignored: GrapeCity.Documents.Text.TextLayout.MaxWidth, GrapeCity.Documents.Text.TextLayout.MaxHeight, GrapeCity.Documents.Text.TextLayout.FlowDirection, GrapeCity.Documents.Text.TextLayout.CanSkipFirstLineWithIndentation, GrapeCity.Documents.Text.TextLayout.ObjectRects, GrapeCity.Documents.Text.TextLayout.ParagraphAlignment, GrapeCity.Documents.Text.TextLayout.MarginLeft, GrapeCity.Documents.Text.TextLayout.MarginRight, GrapeCity.Documents.Text.TextLayout.MarginTop, GrapeCity.Documents.Text.TextLayout.MarginBottom, GrapeCity.Documents.Text.TextLayout.ColumnWidth, GrapeCity.Documents.Text.TextLayout.RowHeight.
Syntax
'Declaration
Public Sub DrawSlantedText( _
ByVal As TextLayout, _
ByVal As System.Integer, _
ByVal As System.Boolean, _
ByVal As System.Drawing.RectangleF, _
ByVal As SlantedTextAlignment _
)
public void DrawSlantedText(
TextLayout ,
System.int ,
System.bool ,
System.Drawing.RectangleF ,
SlantedTextAlignment
)
Parameters
- textLayout
- The GrapeCity.Documents.Text.TextLayout to draw.
- 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 . If true, the lines are stacked vertically along the left and right sides of the rectangle.
- rect
- The target rectangle to be slanted with text.
- alignment
- Alignment of the text in the slanted rectangle.
See Also