Sign in to follow this  
Guest bartels

Hopefully a simple XML question

Recommended Posts

How can I right-justify a FormattedText element?Thanks,Dave

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,With Tabs.for example:Tabs="0R,10L,140C,270R,280R" etc.Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Thank you - that got me looking in the right place. I also found the Adjust="Right" attribute, for the simple case of when the entire string needs to be right-justified.Thanks!Dave

Share this post


Link to post
Share on other sites

It is also possible to use the format specifications: e.g. a string should be 5 chars long and right justified:....! 5s!....If the format is specified with the full count of chars (5 here) and a preceeeding space is used, the text is right aligned and not left (or you could say padded with spaces to the left).E.g.....!05d!....would format an integer number and padd it with zero to the left.Arne Bartels

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this