[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.TextRenderer

Class TextRenderer

Namespace
GrapeCity.Documents.Drawing
Assembly
GcDocs.Imaging.dll

Allows rendering multi-fragment text.

public class TextRenderer
Inheritance
object
TextRenderer
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

TextRenderer(TextLayout, TextSplitOptions)

Initializes a new instance of the TextLayout class.

public TextRenderer(TextLayout textLayout, TextSplitOptions splitOptions)

Parameters

textLayout TextLayout

The text layout to split and render.

splitOptions TextSplitOptions

The splittin options.

Properties

SplitOptions

Gets the TextSplitOptions object defining split options.

public TextSplitOptions SplitOptions { get; }

Property Value

TextSplitOptions

Methods

BeginDraw(GcGraphics, RectangleF, SizeF)

Begins render the text layout on specified graphics.

public bool BeginDraw(GcGraphics graphics, RectangleF bounds, SizeF nextAreaSize)

Parameters

graphics GcGraphics

The GcGraphics to draw.

bounds System.Drawing.RectangleF

The bounds of first fragment.

nextAreaSize System.Drawing.SizeF

The size for the next fragment.

Returns

bool

Returns true if text does not fit in specified bounds and rendering should be continued with ContinueDraw(GcGraphics, PointF, SizeF).

ContinueDraw(GcGraphics, PointF, SizeF)

Continues rendering started with BeginDraw(GcGraphics, RectangleF, SizeF) method.

public bool ContinueDraw(GcGraphics graphics, PointF location, SizeF nextAreaSize)

Parameters

graphics GcGraphics
location System.Drawing.PointF
nextAreaSize System.Drawing.SizeF

Returns

bool