[]
        
(Showing Draft Content)

C1.C1Preview.RenderRichText

RenderRichText Class

Represents an RTF text in a C1PrintDocument.

Inheritance
RenderRichText
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
public class RenderRichText : RenderObject, IStyleOwner, IDocumentLocation

Constructors

Name Description
RenderRichText()

Initializes a new instance of the RenderRichText class.

RenderRichText(string)

Initializes a new instance of the RenderRichText class, using the specified RTF string and style.

RenderRichText(string, Style)

Initializes a new instance of the RenderRichText class, using the specified RTF string and style.

Properties

Name Description
DetectUrls

Gets or sets a value indicating whether or not the current RenderRichText will automatically format Uniform Resource Locators (URLs) when those are found in text assigned to the Rtf property.

HasRtf

Gets a value indicating whether the Rtf property has been initialized and has non-zero length.

Rtf

Gets or sets the RTF-formatted text represented by the current object.

TextLength

Gets the "real" length of the text assigned to the Rtf property. Only the actual text characters are counted, RTF tags are not included in the count.

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

CreateSame()

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

GetApproximateCountOfFragmentsToProcess()

For internal use.

GetDefaultFlags()

For internal use.

GetDefaultSplitVertBehavior()

For internal use.

GetDefaultWidth()

For internal use.

Load(Stream)

Loads the content of the current RenderRichText from a stream containing RTF-formatted data.

Load(Stream, RichTextBoxStreamType)

Loads the content of the current RenderRichText from a stream containing data in a specified format.

Load(string)

Loads the content of the current RenderRichText from a disk file containing RTF-formatted data.

Load(string, RichTextBoxStreamType)

Loads the content of the current RenderRichText from a disk file containing data in a specified format.

SetWidth(Unit)

For internal use.