Back to Devexpress

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

windowsforms-devexpress-dot-xtraeditors-dot-tilecustomdraweventargs-dot-drawhtml-x28-htmltemplate-dxhtmlpaintercontext-action-dxhtmlpainterargs-x29.md

latest2.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

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 |

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

NameTypeDefaultDescription
setupArgsAction<DxHtmlPainterArgs>null

Sets up properties of the DxHtmlPainterArgs object.

|

Remarks

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

See Also

TileCustomDrawEventArgs Class

TileCustomDrawEventArgs Members

DevExpress.XtraEditors Namespace