Bitmap for WPF
DrawText(String,TextFormat,RectF,Brush,DrawTextOptions,MeasuringMode) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.Direct2D 名前空間 > RenderTarget クラス > DrawText メソッド : DrawText(String,TextFormat,RectF,Brush,DrawTextOptions,MeasuringMode) メソッド
A reference to an array of Unicode characters to draw.
An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction.
The size and position of the area in which the text is drawn.
The brush used to paint the text.
A value that indicates whether the text should be snapped to pixel boundaries and whether the text should be clipped to the layout rectangle. The default value is C1.Win.DX.Direct2D.DrawTextOptions.None, which indicates that text should be snapped to pixel boundaries and it should not be clipped to the layout rectangle.
A value that indicates how glyph metrics are used to measure text when it is formatted. The default value is DWRITE_MEASURING_MODE_NATURAL.
Draws the specified text using the format information provided by an C1.Win.DX.DirectWrite.TextFormatobject.
シンタックス
'宣言
 
Public Overloads Sub DrawText( _
   ByVal text As System.String, _
   ByVal textFormat As TextFormat, _
   ByVal layoutRect As RectF, _
   ByVal defaultForegroundBrush As Brush, _
   ByVal options As DrawTextOptions, _
   ByVal measuringMode As MeasuringMode _
) 
public void DrawText( 
   System.string text,
   TextFormat textFormat,
   RectF layoutRect,
   Brush defaultForegroundBrush,
   DrawTextOptions options,
   MeasuringMode measuringMode
)

パラメータ

text
A reference to an array of Unicode characters to draw.
textFormat
An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction.
layoutRect
The size and position of the area in which the text is drawn.
defaultForegroundBrush
The brush used to paint the text.
options
A value that indicates whether the text should be snapped to pixel boundaries and whether the text should be clipped to the layout rectangle. The default value is C1.Win.DX.Direct2D.DrawTextOptions.None, which indicates that text should be snapped to pixel boundaries and it should not be clipped to the layout rectangle.
measuringMode
A value that indicates how glyph metrics are used to measure text when it is formatted. The default value is DWRITE_MEASURING_MODE_NATURAL.
参照

RenderTarget クラス
RenderTarget メンバ
オーバーロード一覧