[]
        
(Showing Draft Content)

C1.C1Preview.RenderText

RenderText Class

Represents a run of text in a C1PrintDocument. Text is drawn using a single style (see RenderParagraph for multi-style text).

Namespace: C1.C1Preview
Assembly: C1.PrintDocument.4.8.dll
Syntax
public class RenderText : RenderTextBase, IStyleOwner, IDocumentLocation

Constructors

Name Description
RenderText()

Initializes a new instance of the RenderText class.

RenderText(string)

Initializes a new instance of the RenderText class, assigning the Text property.

RenderText(string, AlignHorzEnum)

Initializes a new instance of the RenderText class, assigning the Text property, and text alignment.

RenderText(string, Style)

Initializes a new instance of the RenderText class, assigning the Text property and style.

RenderText(string, Style, Style)

Initializes a new instance of the RenderText class, assigning the Text property, and the parent styles.

RenderText(string, Font)

Initializes a new instance of the RenderText class, assigning the Text property and font.

RenderText(string, Font, AlignHorzEnum)

Initializes a new instance of the RenderText class, assigning the Text property, font and text alignment.

RenderText(string, Font, Color)

Initializes a new instance of the RenderText class, assigning the Text property, font and text color.

RenderText(string, Font, Color, AlignHorzEnum)

Initializes a new instance of the RenderText class, assigning the Text property, font, text color and alignment.

Properties

Name Description
HasText

Gets a value indicating whether the Text property of the current object is not null and has a greater than zero length.

Text

Gets or sets the text of the current object.

TextLength

Gets the length of the string returned by the Text property.

Methods

Name Description
AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)

Assigns (copies) properties from another RenderObject to the current object. Calls the base AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool) method. If source is a RenderText, also copies RenderText-specific properties.

CreateSame()

Creates new empty RenderText object linked with same C1PrintDocument as current object.

ShouldSerializeText()

Indicates whether the Text property should be serialized.