Skip to main content
All docs
V24.1

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

Paints the specified HTML template inside the processed tile element. The context parameter allows you to assign an object that transfers mouse events to template elements.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void DrawHtml(
    HtmlTemplate template,
    DxHtmlPainterContext context,
    Action<DxHtmlPainterArgs> setupArgs = null
)

Parameters

Name Type Description
template HtmlTemplate

A template to draw.

context DxHtmlPainterContext

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

Optional Parameters

Name Type Default Description
setupArgs Action<DxHtmlPainterArgs> null

Sets up properties of the DxHtmlPainterArgs object.

Remarks

Refer to the following help topic for more information: Custom Draw Templates.

See Also