Skip to main content

FieldsSettingsBuilder.KeepHyperlinkResultForInvalidReference(Boolean) Method

Sets whether to delete the result of a hyperlink whose target location is not specified.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v23.2.dll

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public FieldsSettingsBuilder KeepHyperlinkResultForInvalidReference(
    bool value
)

Parameters

Name Type Description
value Boolean

true to keep results of all hyperlinks; false to delete the result of a hyperlink whose target location is not specified.

Returns

Type Description
FieldsSettingsBuilder

An object that can be used to further configure the fields settings.

Remarks

The Code part of a hyperlink field has the following syntax: { HYPERLINK "location" }. The location property specifies which bookmark, URL, or e-mail address this hyperlink refers to.

The Rich Text Editor deletes the Result part of a hyperlink whose location property is empty. Pass true to the KeepHyperlinkResultForInvalidReference method to keep results of all hyperlinks.

@(Html.DevExpress().RichEdit("richEdit")
    .Fields(f => f.KeepHyperlinkResultForInvalidReference(true))
)
See Also