Represents text with multiple paragraphs and mixed formatting in a shape.
Inheritance
object
Constructors
Section titled "Constructors"constructor
public FormattedText(string unformattedString) Returns FormattedText
Properties
Section titled "Properties"Paragraphs
Section titled "Paragraphs"Gets the paragraphs in the formatted text.
public FormattedTextParagraphCollection Paragraphs { get; } VerticalAlignment
Section titled "VerticalAlignment"Gets or sets the vertical alignment of the formatted text in the owning shape.
public VerticalTextAlignment VerticalAlignment { get; set; } Methods
Section titled "Methods"Clone()
Section titled "Clone()"Creates a new that is a copy of this one.
public FormattedText Clone() 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 FormattedTextFont 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 FormattedTextFont 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<FormattedTextFont> GetFormattingRuns() Returns any
ToString()
Section titled "ToString()"Returns the string that represents the , which is the unformatted string.
public override string ToString()