[]
        
(Showing Draft Content)

C1.C1Preview.RenderParagraph

RenderParagraph Class

Represents a paragraph in a C1PrintDocument. Paragraphs can contain inline text and images, possibly rendered using different styles. The content of a paragraph is accessible via the Content property.

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

Constructors

Name Description
RenderParagraph()

Initializes a new instance of the RenderParagraph class.

RenderParagraph(AlignHorzEnum)

Initializes a new instance of the RenderParagraph class, specifying the horizontal alignment.

RenderParagraph(Style)

Initializes a new instance of the RenderParagraph class, specifying a Style to use.

RenderParagraph(Font)

Initializes a new instance of the RenderParagraph class, specifying a Font to use.

RenderParagraph(Font, AlignHorzEnum)

Initializes a new instance of the RenderParagraph class, specifying the default font and horizontal alignment.

RenderParagraph(Font, Color)

Initializes a new instance of the RenderParagraph class, specifying the default font and text color.

RenderParagraph(Font, Color, AlignHorzEnum)

Initializes a new instance of the RenderParagraph class, specifying the default font, text color and horizontal alignment.

Properties

Name Description
Content

Gets the ParagraphObjectCollection representing the content (text and images) of the current paragraph.

HasContent

Gets a value indicating whether the Content collection has been initialized and contains one or more elements.

HasText

Gets a value indicating whether the Content collection has been initialized and contains one or more elements.

This property is an alias for the HasContent property.

Text

Gets or sets the text of the current paragraph.

TextLength

Gets the count of characters in the current paragraph. Each non-text object (such as ParagraphImage) counts as one character.

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 RenderParagraph, also copies RenderParagraph-specific properties.

CreateSame()

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