Back to Devexpress

RichEditControlCompatibility.LoadHyperlinkAsField Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditcontrolcompatibility-d091e248.md

latest2.8 KB
Original Source

RichEditControlCompatibility.LoadHyperlinkAsField Property

Gets or sets whether to keep importing document hyperlinks when importing document fields is forbidden.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public static bool LoadHyperlinkAsField { get; set; }
vb
Public Shared Property LoadHyperlinkAsField As Boolean

Property Value

TypeDescription
Boolean

true , to import hyperlinks; otherwise, false.

|

Remarks

The hyperlink is a specific kind of a document field, therefore the DocumentCapabilitiesOptions.Fields property affects the hyperlink loading process when importing the document. Set the LoadHyperlinkAsField property to false before the InitializeComponent method call to correct this behavior and allow the RichEditControl to load hyperlinks when field loading is disabled.

The LoadHyperlinkAsField property takes effect depending on DocumentCapabilitiesOptions.Fields and DocumentCapabilitiesOptions.Hyperlinks property values. If the DocumentCapabilitiesOptions.Fields is set to DocumentCapability.Disabled, and the DocumentCapabilitiesOptions.Hyperlinks property is set to DocumentCapability.Enabled, hyperlinks are properly loaded to the control. If both DocumentCapabilitiesOptions.Fields and DocumentCapabilitiesOptions.Hyperlinks properties are disabled, hyperlinks are not loaded.

See Also

RichEditControlCompatibility Class

RichEditControlCompatibility Members

DevExpress.XtraRichEdit Namespace