Table of Contents

TDrawingTextRun Structure

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

Syntax

Namespace: FlexCel.Core

public struct TDrawingTextRun

Constructors

Name Description
TDrawingTextRun Creates a new Text Run with some text.

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.
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 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
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.