Version

Text Property (ChartTextAreaBase)

Returns or sets a Infragistics.Documents.Excel.FormattedString object which defines the text to be displayed by the associated chart element.
Syntax
'Declaration
 
Public Overridable Property Text As FormattedString
public virtual FormattedString Text {get; set;}
Remarks

Because mixed font settings are supported for chart element text, a special object is required to customize the text.

For the simple case where all the text has the same formatting, create an instance of the Infragistics.Documents.Excel.FormattedString class, specifiying the text as the value of the 'unformattedString' parameter.

To apply font attributes to a given run of text, i.e., a substring within the text, use the Infragistics.Documents.Excel.FormattedString.GetFont method, and set the applicable properties of the Infragistics.Documents.Excel.FormattedStringFont instance returned from the GetFont method.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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