[DevExpress Support Team: CLONED FROM T217259: InsertPicture under Caret]
I'm trying this same thing using the WinForms control and version 15.1, but my image always aligns along the left margin. Anything I need to change with the code to make it work on v15.1 WinForms?
Floating images inserted via API are not aligned correctly when the RelativeHorizontalPosition property equals the Character value
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.1.8Download Official Update
- v14.2.11Download Official Update
Hello Miles,
You are right, setting the RelativeHorizontalPosition property to the ShapeRelativeHorizontalPosition.Character value operates incorrectly in the case of floating images in the RichEditControl document.
I have reproduced this issue on my side and passed this ticket to our developers for further research.
Please bear with us. We will notify you as soon as we make any progress.