Represents text with multiple paragraphs and mixed formatting in a shape.

Inheritance

object

constructor

public FormattedText(string unformattedString)

Returns FormattedText

Gets the paragraphs in the formatted text.

public FormattedTextParagraphCollection Paragraphs { get; }

Gets or sets the vertical alignment of the formatted text in the owning shape.

public VerticalTextAlignment VerticalAlignment { get; set; }

Creates a new that is a copy of this one.

public FormattedText Clone()

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 FormattedTextFont 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 FormattedTextFont 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<FormattedTextFont> GetFormattingRuns()

Returns any

Returns the string that represents the , which is the unformatted string.

public override string ToString()

Returns any