Message 1 of 4
Modifying TextEditorSelection.Language Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is a follow up to this question yesterday:
https://forums.autodesk.com/t5/net/modifying-characterset-property-of-mtext-object/td-p/7810356
Why is it that I can change the string in the MText with
MText mtext = (MText)tr.GetObject(id, OpenMode.ForWrite);
TextEditor textEditor = TextEditor.CreateTextEditor(mtext);
textEditor.SelectAll();
TextEditorSelection sel = textEditor.Selection;
sel.InsertString("Some New Text");
which works OK, however if I change the Language I get eInvalidInput
sel.Language = (int)System.Windows.Forms.VisualStyles.TextMetricsCharacterSet.Russian;
I am obviously misunderstanding something basic here, can anyone give me a pointer into the correct direction?
Thanks,
Drew