DrawBlock Alignment

Hi,

Am I correct saying it is not possible to print align centre or right using StyledTextPrinter’s DrawBlock?

Can anyone suggest how I can print styled text which can be aligned?

Thanks!

Chris

If I recall correctly… Styled Text has a PARAGRAPH alignment attribute, which seems to work inside a TextBox, but does not seem to work anywhere else. Especially if you try to disassemble the data using StyleRuns, as you have to deal with two layers of entity, StyleRuns (which doesn’t have the alignment property) and Paragraphs (which do)… And I for one could never figure out how they synched up

Good man Dave I think you might be on to something :slight_smile: I Set the Alignment Property of the TextArea and DrawBlock recognised it and drew correctly. I’m not pushed about having each paragraph separately aligned - so I think you solved it for me!