WPF TextSelection获取选中部分内容
//TextSelect继承自TextRangeTextSelectionselection=richTextBox.Selection;//1.获取选中内容stringresult=selection.Text;MessageBox.Show(result);二、内容转自:WPF:从TextSel...
WPF TextSelection获取选中部分内容
一、简单实例//TextSelect继承自TextRangeTextSelectionselection=richTextBox.Selection;//1.获取选中内容stringresult=selection.Text;MessageBox.Show(result);二、内容转自:WPF:从T...