Skip to content

Commit f69aee2

Browse files
committed
Fix TextView.LinkTextUnderline property name.
1 parent e115975 commit f69aee2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ICSharpCode.AvalonEdit/Rendering/TextView.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,12 +601,16 @@ public Brush LinkTextBackgroundBrush {
601601
/// LinkTextUnderlinedBrush dependency property.
602602
/// </summary>
603603
public static readonly DependencyProperty LinkTextUnderlineProperty =
604-
DependencyProperty.Register("LinkTextUnderlinedBrush", typeof(bool), typeof(TextView),
604+
DependencyProperty.Register("LinkTextUnderline", typeof(bool), typeof(TextView),
605605
new FrameworkPropertyMetadata(true));
606606

607607
/// <summary>
608608
/// Gets/sets whether to underline link texts.
609609
/// </summary>
610+
/// <remarks>
611+
/// Note that when setting this property to false, link text remains clickable and the LinkTextForegroundBrush (if any) is still applied.
612+
/// Set TextEditorOptions.EnableHyperlinks and EnableEmailHyperlinks to false to disable links completely.
613+
/// </remarks>
610614
public bool LinkTextUnderline
611615
{
612616
get { return (bool)GetValue(LinkTextUnderlineProperty); }

0 commit comments

Comments
 (0)