none
How to set Vertical Alignment in Word add-ins javascript RRS feed

  • Question

  • I have a problem about setting an alignment in paragraph in Word-js. I want to set alignment at top or bottom of the page.

    For example

    var test = context.document.body.insertParagraph("test", "end");
    test.alignment = "centered";
    test.Verticalalignment = "top";

    Does it has a method like Verticalalignment in word add-ins javascript ?

    Thank you

    Monday, May 30, 2016 8:06 AM

Answers

  • Hi Adiluck,

    Based on the word.js api, there is only alignment and we could not use Verticalalignment. I have tried to find a workaround like using insertParagraph, but it seems I could not achieve the same result of Verticalalignment.

    If this is feature you want to include in the future, I suggest you submit a feedback in the link below:

    http://officespdev.uservoice.com

    Best Regards,

    Edward


    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.


    Tuesday, May 31, 2016 2:50 AM