Bitmap for WPF
Draw(Object,TextRenderer,Single,Single) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.DirectWrite 名前空間 > TextLayout クラス > Draw メソッド : Draw(Object,TextRenderer,Single,Single) メソッド
An application-defined drawing context.
Pointer to the set of callback functions used to draw parts of a text string.
The x-coordinate of the layout's left side.
The y-coordinate of the layout's top side.
Draws text using the specified client drawing context.
シンタックス
'宣言
 
Public Overloads Sub Draw( _
   ByVal clientDrawingContext As System.Object, _
   ByVal renderer As TextRenderer, _
   ByVal originX As System.Single, _
   ByVal originY As System.Single _
) 
public void Draw( 
   System.object clientDrawingContext,
   TextRenderer renderer,
   System.float originX,
   System.float originY
)

パラメータ

clientDrawingContext
An application-defined drawing context.
renderer
Pointer to the set of callback functions used to draw parts of a text string.
originX
The x-coordinate of the layout's left side.
originY
The y-coordinate of the layout's top side.

戻り値の型

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
解説
To draw text with this method, a textLayout object needs to be created by the application using C1.Util.DX.DirectWrite.Factory.CreateTextLayout(System.String,System.Int32,C1.Util.DX.DirectWrite.TextFormat,System.Single,System.Single,C1.Util.DX.DirectWrite.TextLayout). After the textLayout object is obtained, the application calls the IDWriteTextLayout::Draw method to draw the text, decorations, and inline objects. The actual drawing is done through the callback interface passed in as the textRenderer argument; there, the corresponding DrawGlyphRun API is called.
参照

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