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 |
---|---|
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 TDrawingTextParagraph 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. |
Inequality | Returns true if both objects do not have the same value. |
LessThan | Returns true is an object is less than the other. |
GreaterThan | Returns true is an object is bigger than the other. |
Properties
Name | Description |
---|---|
Properties | The properties that apply to this paragraph. |
EndParagraphProperties | 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. |