can i specify object vertical alignment in a table cell?

  • Hi Julian,

    I was trying to use WPAT_VertAlign property but I find a little bug.

    It only works if I set it to a paragraph. If I try to set it to CurrAttr (to handle selected cells) it has no effect.

    This works:

    Code
    poWPRichText.ActiveParagraph.ASet(WPAT_VertAlignment, 1);

    This does not work:

    Code
    poWPRichText.CurrAttr.ASet(WPAT_VertAlignment, 1);

    Off course, after that I call some reformat/refresh methods, like

    Code
    poWPRichText.DoUpdateParAttr;
      poWPRichText.ChangeApplied;
      poWPRichText.Refresh;
      poWPRichText.DelayedReformat;

    Thanks for your help

    Alessandro Fragnani