wpf - RichTextBox C# Draw Text method? -


whats method draws text in richtextbox ? tried overriding onrender() called when initialize richtextbox not when i'm typing. dont want call onselectionchange or ontextchange. need method draws text.

im using richtextbox windows.controls

edit

my richtextbox contains words separated image separators. want use ondraw method or create rectangle add adorner image on top of each word.

there isn't method draws text. wpf richtextbox holds flowdocuments, closely related xps. rendered in same way wpf is.

edit: use methods described here position of text , add adorners.

edit 2: use this technique character positions.

rect rect = base.getrectfromcharacterindex( idx ); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -