Version

FormattedText Class

Represents text with multiple paragraphs and mixed formatting in a shape.
Syntax
'Declaration
 
Public Class FormattedText 
public class FormattedText 
Remarks

The formatting of the string is controlled in a similar fashion as it would be in Microsoft Excel. In Excel, the user must select a portion of the text and set the various formatting properties of that selected text.

With the FormattedText, a portion of the text is "selected" by calling either GetFont(Int32) or GetFont(Int32,Int32). Formatting properties are then set on the returned FormattedTextFont and all characters in the font's selection range are given these properties.

Getting the formatting properties of a FormattedTextFont will return the formatting of the first character in font's selection range.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also