Search
ItemDrawContext.DrawFormattedContentsText Method
See Also
 





Renders the underlying item's contents text at the specified location, taking into consideration specific HTML tags.

Namespace: MindFusion.Scheduling.WinForms
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

public bool DrawFormattedContentsText (
    ref Rectangle destination,
    bool useSettings
)

Visual Basic  Copy Code

Public Function DrawFormattedContentsText( _
    ByRef destination As Rectangle, _
    useSettings As Boolean _
) As Boolean

 Parameters

destination
A reference to the destination rectangle. This rectangle might be changed in the process of rendering.
useSettings

Specifies whether to take into consideration validation properties, such as EnableDefaultRendering. Specify false for this property to perform the rendering unconditionally.

 Return Value

true if the text has been rendered; otherwise, false.

 Remarks

This method renders the DescriptionText of the underlying item using the settings from the underlying style, such as TextColor, TextAlignment, and so on. The method also takes into consideration some HTML formatting tags, such as <b>, <i> and <color>. Since the style is based on the current theme, the rendered text is guaranteed to be theme independent, that is, the color and font of the text, unless overriden, are the same as those specified in the current theme. If the theme is changed, the font and color are updated accordingly.

 See Also