title: WPF RichTextBox - Selected Block?
body: <p>I am experimenting with the WPF RichTextBox and notice that I can itterate through the blocks that make up its document by looping through RichTextBox.Document.Blocks.</p>
  
  <p>What is the best way to get the Block that surrounds the caret?</p>
  
  <p>I can get the CaretPosition and the ElementStart and ElementEnd properties of each block but can't see how to compare them because the actual character offsets are not exposed unless I am missing something obvious.</p>