Textformat changes in ultratexteditor after i select edit (editor mode):I know i can fix this when i set TextRenderingMode to GDI (not GDI+) but ist there a better way to do this? Or can i set TextRendering Mode by DEFAULT to GDI?
Thank 4 Help
mygil,
Internally when in edit mode, a Microsoft TextBox is used internally and this is why the rendering is GDI when you are in edit mode and why the rendering of the text changes. By default GDI+ is used because it is more performant.
To change the rendering for an individual editor, you can set the TextRenderingMode on each editor that you want to use GDI rendering. If you wnat to use GDI rendering by defauld for all controls, you can set the static UseGDIPlusTextRendering property to false:
Infragistics.Win.UseGDIPlusTextRendering = false;
As an alternative, you could use the WinFormattedTextEditor in place of the UltraTextEditor as this doesn't use the Microsoft TextBox internally when editing so the rendering mode wouldn't change.
Let me know if you have any questions with this matter.
Please let me know if I may be of further assistance.