LinkifyFormatOptionsFormatLink Property
Gets or sets a value to format the text displayed by a linkified entity. (e.g., truncate a long URL).
Similar to
FormatHref property,
except the formatting will be used in the link value, and not in the 'href' attribute.
Accepts a function that takes the link type, the link value,
and returns the new formated link value.
Default value: null (no formatting) 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.
No code example is currently available or this language may not be supported.
Property Value
FuncLinkifyLinkType,
String,
String
This is a code example.
No code example is currently available or this language may not be supported.
FormatLink =
Function(linkType As LinkifyLinkType, linkValue As String) As String
Dim maxUrlLen As Integer = 10
Select Case linkType
Case LinkifyLinkType.Url
If linkValue.Length > maxUrlLen Then
Return linkValue.Substring(0, maxUrlLen) + "…"
End If
Case Else
Return linkValue ' no formatting
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.