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

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

NuGet Package: DevExpress.AspNetCore.RichEdit

#Declaration

C#
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