Represents a string with mixed formatting in a cell or cell comment.
Inheritance
object
Implements
- IComparable<FormattedString>
Constructors
Section titled "Constructors"constructor
public FormattedString(string unformattedString) Returns FormattedString
Properties
Section titled "Properties"UnformattedString
Section titled "UnformattedString"Gets or sets the unformatted string.
public string UnformattedString { get; set; } Methods
Section titled "Methods"Clone()
Section titled "Clone()"Creates a new that is a copy of this one.
public FormattedString Clone() Returns any
Equals(object)
Section titled "Equals(object)"Determines whether the specified is equal to this .
public override bool Equals(object obj) Parameters
- obj:
object
Returns any
GetFont(int)
Section titled "GetFont(int)"Gets the font which controls the formatting properties in the string from the specified start index to the end of the string.
public FormattedStringFont GetFont(int startIndex) Parameters
- startIndex:
int
Returns any
GetFont(int, int)
Section titled "GetFont(int, int)"Gets the font which controls the formatting properties in the string from the specified start index for the specified number of characters.
public FormattedStringFont GetFont(int startIndex, int length) Parameters
- startIndex:
int - length:
int
Returns any
GetFormattingRuns()
Section titled "GetFormattingRuns()"Gets the collection of formatting runs representing contiguous blocks of similar formatting starting at the beginning of the string.
public IEnumerable<FormattedStringFont> GetFormattingRuns() Returns any
GetHashCode()
Section titled "GetHashCode()"Calculates the has code for this .
public override int GetHashCode() Returns any
ToString()
Section titled "ToString()"Returns the that represents this . This is just the unformatted string.
public override string ToString()