Table of Contents

TDrawingTextParagraph Record

A paragraph in the text inside a drawing. This struct is immutable.

Syntax

Unit: FlexCel.Core

TDrawingTextParagraph = record;

Methods

Name Description
Create Overloaded
Create(TDrawingTextRunArray, TDrawingParagraphProperties, TDrawingTextProperties)
Create(string, TDrawingParagraphProperties, TDrawingTextProperties)
Create(TDrawingTextRunArray, TDrawingParagraphProperties, TDrawingTextProperties, string)
TextRun Returns a single text run for the paragraph.
Substring Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
ReplaceRun Returns a new paragraph with the run at position run replaced ny another.
CompareTo Returns -1 if obj is bigger than this, 0 if both strings are the same, and 1 if obj is smaller than this.
GetHashCode Returns the hashcode of the object.
Equals Returns true if both instances have the same string and formatting.
WithNewFieldIds Returns a new TDrawingText​Paragraph with new field ids if the DrawingTextParagraph has field ids.
While FlexCel will do this automatically when you link a shape, you can use this method when creating a new linked shape that requires new field ids.

Operators

Name Description
Equality Adapts the = operator so it returns true when both instances have the same values.
Inequality Adapts the <> operator so it returns true when both instances have different values.
LessThan Adapts the < operator so it returns true when the first parameter is smaller than the second.
GreaterThan Adapts the > operator so it returns true when the first parameter is bigger than the second.

Properties

Name Description
Properties The properties that apply to this paragraph.
EndParagraph​Properties Properties that apply to new paragraphs that are added after this one.
TextRunCount Returns the number of runs in the paragraph.
Text Returns the contents of the paragraph as plain text.
UnknownXml Contains unknown xml read from an xlsx file. If this property is not empty, then the value here will be used and the rest of properties will be ignored when saving the file.
Runs Returns all the text runs for this paragraph.
This creates a copy of the array of runs, so if possible use TextRun instead to avoid memory allocations.