Version

Search Results

Clone Method (FormattedText)

Creates a new FormattedText that is a copy of this one. Syntax Return Value A new FormattedText that is a copy of this one. Remarks This should be used if the same formatted text needs to be used in multiple shapes. The FormattedText class can only exist as the WorksheetShapeWithText.Text of one shape at a time. I...

GetFont(Int32) Method

Gets the font which controls the formatting properties in the string from the specified start index to the end of the string. Syntax Parameters startIndex The index of the first character the returned font controls. Return Value A FormattedTextFont instance which controls the formatting of the end portion of the s...

GetFont(Int32,Int32) Method

Gets the font which controls the formatting properties in the string from the specified start index for the specified number of characters. Syntax Parameters startIndex The index of the first character the returned font controls.length The number of characters after the start index controlled by the returned font....

GetFont Method (FormattedText)

Gets the font which controls the formatting properties in the string from the specified start index to the end of the string. Overload List

GetFormattingRuns Method (FormattedText)

Gets the collection of formatting runs representing contiguous blocks of similar formatting starting at the beginning of the string. Syntax

Paragraphs Property

Gets the paragraphs in the formatted text. Syntax

ToString Method (FormattedText)

Returns the string that represents the FormattedText, which is the unformatted string. Syntax Return Value The string that represents the FormattedText.

VerticalAlignment Property (FormattedText)

Gets or sets the vertical alignment of the formatted text in the owning shape. Syntax Exceptions Exception Description System.ComponentModel.InvalidEnumArgumentException The specified value is not defined in the VerticalTextAlignment enumeration.

FormattedText Constructor

Creates a new instance of the FormattedText class. Syntax Parameters unformattedString The string that will be displayed in the shape. Each line of the string will be placed in a separate paragraph of the Paragraphs collection. Exceptions Exception Description System.ArgumentNullException unformattedString is null...