Table of Contents

Method DrawRotatedText

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

DrawRotatedText(string, PointD, Font, Color, Color, double, GraphicsUnit)

Draws the text rotated by angle degrees (positive angles are counterclockwise; the full angle is 360 degrees) with the specified font, background and foreground colors.

public abstract void DrawRotatedText(string text, PointD location, Font font, Color foreColor, Color backColor, double angle, GraphicsUnit unit = GraphicsUnit.Dip)

Parameters

text string

Text to draw.

location PointD

Location used to draw the text. Specified in dips.

font Font

Font used to draw the text.

foreColor Color

Foreground color of the text.

backColor Color

Background color of the text. If parameter is equal to Empty, background will not be painted.

angle double

Text angle.

unit GraphicsUnit

GraphicsUnit that determines the unit of measure for the point parameter.

Remarks

Notice that, as with other draw text methods, the text can contain multiple lines separated by the new line('\n') characters.