[]
Allows rendering multi-fragment text.
public class TextRenderer
Initializes a new instance of the TextLayout class.
public TextRenderer(TextLayout textLayout, TextSplitOptions splitOptions)
textLayout TextLayoutThe text layout to split and render.
splitOptions TextSplitOptionsThe splittin options.
Gets the TextSplitOptions object defining split options.
public TextSplitOptions SplitOptions { get; }
Begins render the text layout on specified graphics.
public bool BeginDraw(GcGraphics graphics, RectangleF bounds, SizeF nextAreaSize)
graphics GcGraphicsThe GcGraphics to draw.
bounds System.Drawing.RectangleFThe bounds of first fragment.
nextAreaSize System.Drawing.SizeFThe size for the next fragment.
Returns true if text does not fit in specified bounds and rendering should be continued with ContinueDraw(GcGraphics, PointF, SizeF).
Continues rendering started with BeginDraw(GcGraphics, RectangleF, SizeF) method.
public bool ContinueDraw(GcGraphics graphics, PointF location, SizeF nextAreaSize)
graphics GcGraphicslocation System.Drawing.PointFnextAreaSize System.Drawing.SizeF