Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HtmlEdit.SetHtmlSourceAsync(HtmlSource, CancellationToken) Method

SECURITY NOTE

The HTML Edit control does not support CSP. To minimize security-related risks, you should always sanitize untrusted raw HTML content (passed from potentially unsafe sources).

Note: End users cannot inject malicious content using the HTML Edit control’s user interface. As such you only need to sanitize content passed to the HTML Edit control via its API.

Asynchronously specifies the HTML markup source that is displayed in the HtmlEdit.

Namespace: DevExpress.Maui.HtmlEditor

Assembly: DevExpress.Maui.HtmlEditor.dll

NuGet Package: DevExpress.Maui.HtmlEditor

#Declaration

C#
public Task SetHtmlSourceAsync(
    HtmlSource htmlSource,
    CancellationToken cancellationToken = default(CancellationToken)
)

#Parameters

Name Type Description
htmlSource HtmlSource

The HtmlSource that includes HTML markup to display in the control.

#Optional Parameters

Name Type Default Description
cancellationToken CancellationToken null

A cancellation token.

#Returns

Type Description
Task

A task that allows you to wait for the operation.

See Also