question

weiliu-1671 avatar image
0 Votes"
weiliu-1671 asked DanielZhang-MSFT commented

RichTextBox.LinkClicked无法获取隐藏文本

请问:
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下没有


dotnet-csharpwindows-forms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @weiliu-1671,
Currently in Microsoft Q&A we only support English, could you please edit your question in English? Then we can help to solve your issues.
And here is a related thread you can refer to.
Thank you for your understanding.
Best Regards,
Daniel Zhang


0 Votes 0 ·

0 Answers