RichTextBox.LinkClicked无法获取隐藏文本

wei liu 1 Reputation point
2021-04-09T07:50:52.81+00:00

请问:
RichTextBox.LinkClicked在net48下LinkText中没有隐藏的文本(\v ... \v0),在net45之前是有隐藏文本的,在net48下,LinkClicked中要怎么获取隐藏文本??

TargetRichTextBox.SelectedRtf = @"{\rtf1\ansi linktest \v #link1\v0}";

TargetRichTextBox.LinkClicked += TargetRichTextBox_LinkClicked;

private void TargetRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e){

     // e.LinkText 此处 LinkText 需要获取隐藏文件。问题:在net45下有,在net48下没有

Developer technologies | Windows Forms
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.