LinkifyFormatOptionsLinkValidationSelector Property
Gets or sets a value to filter out certain links to prevent linkify from
highlighting them based on any desired criteria.
Accepts a function that takes the link type, the link value,
and returns true if the link value should be converted into an anchor tag, or false otherwise.
Default value: True for all link types.
Namespace: DevCase.Core.DataProcessing.HtmlAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Func<LinkifyLinkType, string, bool> LinkValidationSelector { get; set; }
Public Property LinkValidationSelector As Func(Of LinkifyLinkType, String, Boolean)
Get
Set
Dim instance As LinkifyFormatOptions
Dim value As Func(Of LinkifyLinkType, String, Boolean)
value = instance.LinkValidationSelector
instance.LinkValidationSelector = value
member LinkValidationSelector : Func<LinkifyLinkType, string, bool> with get, set
No code example is currently available or this language may not be supported.
Property Value
FuncLinkifyLinkType,
String,
Boolean
This is a code example.
No code example is currently available or this language may not be supported.
LinkValidationSelector =
Function(linkType As LinkifyLinkType, linkValue As String) As String
Select Case linkType
Case LinkifyLinkType.Url
Return linkValue.Contains("domain.com")
Case Else
Return True
End Select
End Function
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.