Back to Devexpress

CustomDrawTimelineTaskEventArgs.DrawHtml(HtmlTemplate, DxHtmlPainterContext, Action<DxHtmlPainterArgs>) Method

windowsforms-devexpress-dot-xtragantt-dot-customdrawtimelinetaskeventargs-dot-drawhtml-x28-htmltemplate-dxhtmlpaintercontext-action-dxhtmlpainterargs-x29.md

latest2.6 KB
Original Source

CustomDrawTimelineTaskEventArgs.DrawHtml(HtmlTemplate, DxHtmlPainterContext, Action<DxHtmlPainterArgs>) Method

Draws the specified HTML template inside the task displayed on the timeline. The context parameter allows you to assign an object that transfers mouse events to template elements.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public void DrawHtml(
    HtmlTemplate template,
    DxHtmlPainterContext context,
    Action<DxHtmlPainterArgs> setupArgs = null
)
vb
Public Sub DrawHtml(
    template As HtmlTemplate,
    context As DxHtmlPainterContext,
    setupArgs As Action(Of DxHtmlPainterArgs) = Nothing
)

Parameters

NameTypeDescription
templateHtmlTemplate

A template to draw.

| | context | DxHtmlPainterContext |

An object that transfers mouse events from a control to a template instance. This allows you to switch visual states (regular, hovered, pressed) of template elements.

|

Optional Parameters

NameTypeDefaultDescription
setupArgsAction<DxHtmlPainterArgs>null

Sets up the DxHtmlPainterArgs object.

|

Remarks

Read the following topic for detailed information and examples: Custom Draw Templates.

See Also

CustomDrawTimelineTaskEventArgs Class

CustomDrawTimelineTaskEventArgs Members

DevExpress.XtraGantt Namespace