Set Text Alignment Property on Label and TextBox in ETO Form

Hi,

How does one set the text alignment property on a label or text box in an ETO Form? I found the TextAlignment property but don’t know how to format the code?

Eric

Hi @eric.bunn, below seems to work if the label is placed in a DynamicLayout:

label = Eto.Forms.Label(Text="Aligned label text")
label.TextAlignment = Eto.Forms.TextAlignment.Right 

_
c.

2 Likes

Thanks. I’ll try that out.

Eric