PlainText.WrappingPaths Property

Gets the collection of paths to wrap the text around.

Namespace: Aurigma.GraphicsMill.AdvancedDrawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public virtual Collection<Path> WrappingPaths { get; }

Property Value

Paths to wrap around.

Remarks

Text will be wrapped around all paths that are in the collection.

Examples

C#
using (var bitmap = new Bitmap(300, 200, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetAdvancedGraphics())
{
    var text = new PlainText(@"Lorem ipsum dolor sit amet", graphics.CreateFont("Arial", 14))
    {
        Position = new System.Drawing.PointF(20, graphics.Height / 2)
    };

    var path = new Path();
    path.DrawEllipse(105, 0, 90, 200);
    graphics.FillPath(new SolidBrush(RgbColor.Moccasin), path);

    text.WrappingPaths.Add(path);

    graphics.DrawText(text);
    bitmap.Save(@"Images\Output\PlainTextWrapping.png");
}

See Also

Reference