我在WPF中工作,我高亮显示了每个单词,使用下面的code.its works fine.But单词包含连字符的意思,突出显示的单词在连字符之间有一些细行。string SelectHighlightWord(RichTextBox rtb, int offset, int length) TextRange fullRange= new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
fullRange.ClearAllProp
我正在尝试使用RichTextBox,我的第一感觉是:“使用它有什么复杂的!”……太神奇了..。TextRange range = new TextRange(MyTextInput.Document.ContentStart, MyTextInput.Document.ContentEndTextRangetextrange = new TextRange(start, end);
我在RichTextBox中使用FlowDocuments,更具体地说,当TextChange事件发生时使用TextRanges和TextPointers。我通过以下方式访问TextRangeTextRange range = new TextRange(RichTextControl.Document.ContentStart, RichtextControl.Document.ContentEnd);
TextRange changeRan