locked
Image RichEditBox RRS feed

  • Question

  • Hello. I was able to insert image into the RichEditBox. How to add indent after you insert the image?
    • Edited by LaWrik Sunday, May 10, 2015 6:28 PM
    Saturday, May 9, 2015 10:52 PM

All replies

  • Hi LaWrik,

    >>How to add indent after you insert the image?

    I am not sure if I have misunderstood you, I have used the following code to insert the image into the RichEditBox, after that I can add the indent:

    StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///testimage.jpg"));
    var fileimage = await file.OpenReadAsync();
    MyRichEditBox.Document.Selection.InsertImage(100, 100, 100, Windows.UI.Text.VerticalCharacterAlignment.Top, "test", fileimage);

    If I have misunderstood you, please feel free to let me know and describe more about your question.

    Thanks for your understanding.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.




    Monday, May 11, 2015 7:43 AM
    Moderator
  • Such a result should be. After the insert image in RichEditBox.

    Please excuse me for my bad English.


    • Edited by LaWrik Tuesday, May 12, 2015 4:47 AM
    Monday, May 11, 2015 2:39 PM
  • Hi LaWrik,

    I am sorry I am still not sure if I have misunderstood you idea, based on your result image, I wonder do you want to increase the space between the image line and text line? If so we can set the line spacing by using the  ITextRange's ParagraphFormat and the ITextParagraphFormat.SetLineSpacing method. Or we can add a new line to increase the line space.

    If I have misunderstood you, please try to describe more about your question.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, May 25, 2015 7:47 AM
    Moderator