Gets or sets the text alignment.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public TextAlignment Alignment { get; set; }
using (var bitmap = new Bitmap(130, 100, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) { var boundedText = new BoundedText("Bounded Text", graphics.CreateFont("Arial", 28), new System.Drawing.RectangleF(20, 10, 110, 90)); boundedText.Alignment = TextAlignment.Right; graphics.DrawText(boundedText); bitmap.Save(@"Images\Output\out.png"); }