I have a FlowDocument instance from WPF RichTextBox. I have to find all places in the FlowDocument where style is changed.
Incomming parameters:
- doc of type FlowDocument - document for analysis
- beginPoint and endPoint of type TextPointer - begin and the end of the range for analysis from the doc
Returning data:
- TextPointer[] which represents the list of locations in the doc where changes of style detected
Sample of text for analysis: "Welcome to the real world!" There are four chages of style: "Welcome" (normal), "to" (bold), "the" (bold italic), "real" (italic), "world!" (normal)
Thank you!