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
Post a Comment