[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.RenderTarget.DrawTextLayout

DrawTextLayout Method

DrawTextLayout(Point2F, TextLayout, Brush)

Draws the formatted text described by the specified C1.Win.DX.DirectWrite.TextLayout object.

Declaration
public void DrawTextLayout(Point2F origin, TextLayout textLayout, Brush defaultForegroundBrush)
Parameters
Type Name Description
Point2F origin

The point, described in device-independent pixels, at which the upper-left corner of the text described by textLayout is drawn.

TextLayout textLayout

The formatted text to draw. Any drawing effects that do not inherit from C1.Win.DX.Direct2D.Resource are ignored. If there are drawing effects that inherit from ID2D1Resource that are not brushes, this method fails and the render target is put in an error state.

Brush defaultForegroundBrush

The brush used to paint any text in textLayout that does not already have a brush associated with it as a drawing effect (specified by the C1.Win.DX.DirectWrite.TextLayout.SetDrawingEffect(C1.Win.DX.ComObject,C1.Win.DX.DirectWrite.TextRange) method).

DrawTextLayout(Point2F, TextLayout, Brush, DrawTextOptions)

void ID2D1RenderTarget::DrawTextLayout([In] D2D_POINT_2F origin,[In] IDWriteTextLayout* textLayout,[In] ID2D1Brush* defaultForegroundBrush,[In] D2D1_DRAW_TEXT_OPTIONS options)

Declaration
public void DrawTextLayout(Point2F origin, TextLayout textLayout, Brush defaultForegroundBrush, DrawTextOptions options)
Parameters
Type Name Description
Point2F origin
TextLayout textLayout
Brush defaultForegroundBrush
DrawTextOptions options