Represents a string with mixed formatting in a cell or cell comment.

Inheritance

Implements
  • IComparable<FormattedString>

constructor

public FormattedString(string unformattedString)

Returns FormattedString

Gets or sets the unformatted string.

public string UnformattedString { get; set; }

Creates a new that is a copy of this one.

public FormattedString Clone()

Returns any

Determines whether the specified is equal to this .

public override bool Equals(object obj)

Parameters

  • obj: object

Returns any

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

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

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

Calculates the has code for this .

public override int GetHashCode()

Returns any

Returns the that represents this . This is just the unformatted string.

public override string ToString()

Returns any