Search This Blog

Monday, January 12, 2015

Media Namespace WPF

WPF > Windows > Media

Media enable integration of rich media:

  • drawings
  • text
  • audio/video content

Classes



Extract the Text Content from a RichTextBox

WPF > Windows > Documents > TextRange

TextRange is a selection of content between two TextPointer positions.

Example

Extract the Text Content from a RichTextBox

 TextRange textRange = new TextRange(richTB.Document.ContentStart,   richTB.Document.ContentEnd);

WPF Documents Namespace

WPF > Windows > Documents

WPF Documents contains types that support FixedDocument, FlowDocument and XPS document creation.