Method DrawText
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.Core.dll
DrawText(IDeviceContext, string, ITextFormat, Point2Float, SizeFloat, IDeviceBrush, DrawTextOptions, TextMeasuringMode)
public static void DrawText(this IDeviceContext deviceContext, string text, ITextFormat textFormat, Point2Float layoutTopLeft, SizeFloat layoutSize, IDeviceBrush defaultFillBrush, DrawTextOptions options = DrawTextOptions.EnableColorFont, TextMeasuringMode measuringMode = TextMeasuringMode.Natural)
Parameters
deviceContext
IDeviceContext
text
string
textFormat
ITextFormat
layoutTopLeft
Point2Float
layoutSize
SizeFloat
defaultFillBrush
IDeviceBrush
options
DrawTextOptions
measuringMode
TextMeasuringMode
DrawText(IDeviceContext, string, ITextFormat, Point2Float, float, float, IDeviceBrush, DrawTextOptions, TextMeasuringMode)
public static void DrawText(this IDeviceContext deviceContext, string text, ITextFormat textFormat, Point2Float layoutTopLeft, float layoutWidth, float layoutHeight, IDeviceBrush defaultFillBrush, DrawTextOptions options = DrawTextOptions.EnableColorFont, TextMeasuringMode measuringMode = TextMeasuringMode.Natural)
Parameters
deviceContext
IDeviceContext
text
string
textFormat
ITextFormat
layoutTopLeft
Point2Float
layoutWidth
float
layoutHeight
float
defaultFillBrush
IDeviceBrush
options
DrawTextOptions
measuringMode
TextMeasuringMode
DrawText(IDeviceContext, string, ITextFormat, float, float, SizeFloat, IDeviceBrush, DrawTextOptions, TextMeasuringMode)
public static void DrawText(this IDeviceContext deviceContext, string text, ITextFormat textFormat, float layoutX, float layoutY, SizeFloat layoutSize, IDeviceBrush defaultFillBrush, DrawTextOptions options = DrawTextOptions.EnableColorFont, TextMeasuringMode measuringMode = TextMeasuringMode.Natural)
Parameters
deviceContext
IDeviceContext
text
string
textFormat
ITextFormat
layoutX
float
layoutY
float
layoutSize
SizeFloat
defaultFillBrush
IDeviceBrush
options
DrawTextOptions
measuringMode
TextMeasuringMode
DrawText(IDeviceContext, string, ITextFormat, float, float, float, float, IDeviceBrush, DrawTextOptions, TextMeasuringMode)
public static void DrawText(this IDeviceContext deviceContext, string text, ITextFormat textFormat, float layoutX, float layoutY, float layoutWidth, float layoutHeight, IDeviceBrush defaultFillBrush, DrawTextOptions options = DrawTextOptions.EnableColorFont, TextMeasuringMode measuringMode = TextMeasuringMode.Natural)
Parameters
deviceContext
IDeviceContext
text
string
textFormat
ITextFormat
layoutX
float
layoutY
float
layoutWidth
float
layoutHeight
float
defaultFillBrush
IDeviceBrush
options
DrawTextOptions
measuringMode
TextMeasuringMode