![]() |
NanoXLSX.Formatting 3.0.0
|
Represents a single text run with optional inline formatting. More...
Public Member Functions | |
| TextRun (string text, Font fontStyle=null) | |
| Constructor to create a text run with optional inline style. | |
| TextRun | Copy () |
| Creates a copy of the current text run. | |
| override bool | Equals (object obj) |
| Equals override to compare text runs. | |
| override int | GetHashCode () |
| HashCode override for text runs. | |
Properties | |
| string | Text [get, set] |
| Plain text of the run. | |
| Font | FontStyle [get, set] |
| Font style applied to the text run. | |
Represents a single text run with optional inline formatting.
Definition at line 17 of file TextRun.cs.
| NanoXLSX.Extensions.TextRun.TextRun | ( | string | text, |
| Font | fontStyle = null ) |
Constructor to create a text run with optional inline style.
| text | Plain text |
| fontStyle | Optional font style |
| Exceptions.FormatException | Thrown when the text is null |
Definition at line 48 of file TextRun.cs.
| TextRun NanoXLSX.Extensions.TextRun.Copy | ( | ) |
Creates a copy of the current text run.
Definition at line 58 of file TextRun.cs.
| override bool NanoXLSX.Extensions.TextRun.Equals | ( | object | obj | ) |
Equals override to compare text runs.
| obj | Other object to compare |
Definition at line 68 of file TextRun.cs.
| override int NanoXLSX.Extensions.TextRun.GetHashCode | ( | ) |
HashCode override for text runs.
Definition at line 83 of file TextRun.cs.
|
getset |
Font style applied to the text run.
Definition at line 40 of file TextRun.cs.
|
getset |
Plain text of the run.
| Exceptions.FormatException | Thrown when the text is null |
Definition at line 25 of file TextRun.cs.