Version

BuildFormattedText(String,Size,Font,AppearanceData) 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 Function BuildFormattedText( _
   ByVal formattedText As String, _
   ByVal sizeInPixels As Size, _
   ByVal baseFont As Font, _
   ByRef defaultAppearance As Infragistics.Win.AppearanceData _
) As String
public static string BuildFormattedText( 
   string formattedText,
   Size sizeInPixels,
   Font baseFont,
   ref Infragistics.Win.AppearanceData defaultAppearance
)

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.

Return Value

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

BuildFormattedText is a method used to parse the string representation of an 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

In addition to the above list, the following are not possible without providing an element into which multiple Infragistics.Documents.Reports.Report.Text.IText elements can be added, such as through BuildFormattedText(String,Size,Font,AppearanceData,IGridCell).

  • Horizontal Rule
  • Text Alignment
  • 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