WPCubed Product Support

can i specify object vertical alignment in a table cell?

Can I specify the object's vertical alignment in a table cell? etc. top,middle and bottom.

i am using wptools v5.20.4 thanks.

#1 ♥ 0
3.6k Views 3 users read 1 min
support

You can use the property WPAT_VertAlign

with par.ASet( ..., value )

0=paralVertTop, 1=paralVertCenter, 2=paralVertBottom

Julian

#2 ♥ 0

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:

poWPRichText.ActiveParagraph.ASet(WPAT_VertAlignment, 1);

This does not work:

poWPRichText.CurrAttr.ASet(WPAT_VertAlignment, 1);

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

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

Thanks for your help

Alessandro Fragnani

#3 ♥ 0
This category is archived. No new posts are possible.