Table of Contents

TDrawingTextRun Record

A rich formatting run used in text inside of a drawing. This struct is immutable.

Syntax

Unit: FlexCel.Core

TDrawingTextRun = record;

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.
Create Creates a new Text Run with some text.
CreateField Creates a new Text Run with a field.
Equals Returns true if both instances have the same string and formatting.
GetHashCode Returns the hashcode of the object.
ToString String in the text run.
WithNewFieldId Returns a new TDrawingTextRun with new field ids if the DrawingTextRun 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.
GreaterThan Adapts the > operator so it returns true when the first parameter is bigger than the second.
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.

Properties

Name Description
FieldId Id for the Field that this text run holds. It must be an unique GUID per field which has different linked cells.
Two shapes with the same linked cell can share the same FieldId.
FieldName Field that this text run holds. If empty, then this run holds text and not a field.
IsBreak Returns true if this run contains a single line break.
IsFieldName If true, this run contains a field name and not text.
Text String that this text run holds. If this run holds a field, the text should be ignored.
TextProperties Properties for this text run.