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

C1.UWP.DX アセンブリ > C1.Util.DX.DirectWrite 名前空間 > TextLayout クラス > Draw メソッド : Draw(TextRenderer,Single,Single) メソッド
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 renderer As TextRenderer, _
   ByVal originX As System.Single, _
   ByVal originY As System.Single _
) 
public void Draw( 
   TextRenderer renderer,
   System.float originX,
   System.float originY
)

パラメータ

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 メンバ
オーバーロード一覧