Version

BuildFormattedText(String,Size,Font,AppearanceData,ITableCell) Method

Generates a string that can be parsed by the Infragistics.Documents.Reports.Report.Text.IText.AddRichContent(System.String) method.
Syntax
'Declaration
 
Public Overloads Shared Sub BuildFormattedText( _
   ByVal formattedText As String, _
   ByVal sizeInPixels As Size, _
   ByVal baseFont As Font, _
   ByRef defaultAppearance As Infragistics.Win.AppearanceData, _
   ByRef cell As Infragistics.Documents.Reports.Report.Table.ITableCell _
) 
public static void BuildFormattedText( 
   string formattedText,
   Size sizeInPixels,
   Font baseFont,
   ref Infragistics.Win.AppearanceData defaultAppearance,
   ref Infragistics.Documents.Reports.Report.Table.ITableCell cell
)

Parameters

formattedText
The string representation of the value of a Infragistics.Win.FormattedLinkLabel.FormattedLinkEditor.
sizeInPixels
The size of the object that will contain the string. This is mainly used for images whose size is represented as a percentage.
baseFont
The default font to use when no font is specified for an element.
defaultAppearance
The default Infragistics.Win.AppearanceData used to resolve the font information and color.
cell
The Infragistics.Documents.Reports.Report.Table.ITableCell into which the formatted text should be rendered.

Return Value

A string containing the supported elements of the AddRichContent method.
Remarks

BuildFormattedText is a method used to parse the string representation of a UltraFormattedTextEditor or UltraFormattedLinkLabel such that it can be added to an element of a report. Not all aspects of these controls are supported by the AddRichContent method, so any such attributes are ignored.


Note:The list of unsupported attributes or properties includes the following list:

  • Floating Images
  • Text Background
  • If the resolved font, specified in either in the formatted text or the base font, does not natively support bold as a TrueType font, then it cannot be drawn as such into a PDF document; for example, if the font does not have a specific Bold entry in the Fonts directory (default: C:\Windows\Fonts), then the text will be rendered as slightly wider than non-bold text.

Requirements

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