New to Telerik UI for WPFStart a free 30-day trial

Definition

Namespace:Telerik.Windows.Media.Imaging.Commands

Assembly:Telerik.Windows.Controls.ImageEditor.dll

Syntax:

C#
public class DrawTextCommandContext

Inheritance: objectDrawTextCommandContext

Constructors

C#
public DrawTextCommandContext(double fontSize, Color foreColor, string text, Point textPosition, double textRotation, FontFamily fontFamily, bool isTextBold, bool isTextItalic, bool isTextUnderlined)
Parameters:fontSizedoubleforeColorColortextstringtextPositionPointtextRotationdoublefontFamilyFontFamilyisTextBoldboolisTextItalicboolisTextUnderlinedbool
C#
public DrawTextCommandContext(double fontSize, Color foreColor, string text, Point textPosition, double textRotation, FontFamily fontFamily)
Parameters:fontSizedoubleforeColorColortextstringtextPositionPointtextRotationdoublefontFamilyFontFamily

Initializes a new instance of the DrawTextCommandContext class.

C#
public DrawTextCommandContext(double fontSize, Color foreColor, string text, Point textPosition, double textRotation)
Parameters:fontSizedouble

Size of the font.

foreColorColor

Color of the text.

textstring

The text.

textPositionPoint

The text position.

textRotationdouble

The angle, in degrees, of text's clockwise rotation.

Properties

FontFamily

FontFamily

C#
public FontFamily FontFamily { get; }
C#
public double FontSize { get; }
C#
public Color ForeColor { get; }
C#
public bool IsTextBold { get; }
C#
public bool IsTextItalic { get; }
C#
public bool IsTextUnderlined { get; }
C#
public string Text { get; }
C#
public Point TextPosition { get; }

Gets the angle, in degrees, of clockwise rotation.

C#
public double TextRotation { get; }