带格式分离两个RichEditControl的文本

using( RichEditControl selector = new RichEditControl() {
RtfText = richTextFromHtml 
} ) {
DocumentRange rangeBlockOne = selector.Document.CreateRange( 0, 19 );
DocumentRange rangeBlockTwo = selector.Document.CreateRange( 19, 49 );
richTextBlockOne = selector.Document.GetRtfText( rangeBlockOne );
richTextBlockTwo = selector.Document.GetRtfText( rangeBlockTwo );
}

 

posted on 2015-01-20 10:36  harrell  阅读(334)  评论(0编辑  收藏  举报