[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Text Alignment

Hi

Newbie question!

I want to change the TextAlignment property of DrawFormat.
I can get the property of the TextAlignment and convert it to a string, but how do i set it?

This has the output : Near
Console.WriteLine((string)(DrawFormat.Alignment.ToString());

But how do i set?

thx in advance
0
nick81
Asked:
nick81
1 Solution
 
ACGTCommented:
Use the StringAlignment enumeration in namespace Drawing?

yourFormat.Alignment = StringAlignment.Near;

Sabine
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now