Table of Contents

Method DrawTextWithAngle

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

DrawTextWithAngle(ReadOnlySpan<char>, PointD, Font, Color, Color, float)

Draws text with the specified angle, font, background and foreground colors.

public override void DrawTextWithAngle(ReadOnlySpan<char> text, PointD location, Font font, Color foreColor, Color backColor, float angle)

Parameters

text ReadOnlySpan<char>

Text to draw.

location PointD

Location used to draw the text.

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 float

The angle, in degrees, relative to the (default) horizontal direction to draw the string.