Table of Contents

TDrawingTextParagraph Structure

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

Syntax

Namespace: FlexCel.Core

public struct TDrawingTextParagraph

Constructors

Methods

Name Description
CompareTo Returns -1 if obj is bigger than this, 0 if both strings are the same, and 1 if obj is smaller than this.
Equals Returns true if both instances have the same string and formatting.
GetHashCode Returns the hashcode of the object.
ReplaceRun Returns a new paragraph with the run at position run replaced ny another.
Substring Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
TextRun Returns a single text run for the paragraph.
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 Returns true if both objects are equal.
GreaterThan Returns true is an object is bigger than the other.
Inequality Returns true if both objects do not have the same value.
LessThan Returns true is an object is less than the other.

Properties

Name Description
EndParagraph​Properties Properties that apply to new paragraphs that are added after this one.
Properties The properties that apply to this paragraph.
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.
Text Returns the contents of the paragraph as plain text.
TextRunCount Returns the number of runs in the paragraph.
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.