Class ExcelTextSettings
This class contains settings for text measurement.
Inheritance
System.Object
ExcelTextSettings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Syntax
public class ExcelTextSettings
Fields
AutofitRows
The ammount of rows to check for when autofitting, starts from top. A value set to 0 or lower means checking all rows in the column.
Declaration
public int AutofitRows
Field Value
| Type | Description |
|---|---|
| System.Int32 |
textLengthThreshold
A percentage of the widest text. Since charaters in different fonts have different widths we use this threshold remove characters from the longer string for comparing to the current text. This is so we can skip obvious shorter strings and save time on calculating it's actual width.
Declaration
public double textLengthThreshold
Field Value
| Type | Description |
|---|---|
| System.Double |
Properties
AutofitScaleFactor
All measurements of texts will be multiplied with this value. Default is 1.
Declaration
public float AutofitScaleFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
FallbackTextMeasurer
If the primary text measurer fails to measure the text, this one will be used.
Declaration
public ITextMeasurer FallbackTextMeasurer { get; set; }
Property Value
| Type | Description |
|---|---|
| OfficeOpenXml.Interfaces.Drawing.Text.ITextMeasurer |
GenericTextMeasurer
Returns an instance of the internal generic text measurer
Declaration
public ITextMeasurer GenericTextMeasurer { get; }
Property Value
| Type | Description |
|---|---|
| OfficeOpenXml.Interfaces.Drawing.Text.ITextMeasurer |
PrimaryTextMeasurer
This is the primary text measurer
Declaration
public ITextMeasurer PrimaryTextMeasurer { get; set; }
Property Value
| Type | Description |
|---|---|
| OfficeOpenXml.Interfaces.Drawing.Text.ITextMeasurer |