Click or drag to resize

PdfPathOperationAction Property

Gets the action for this path operation.

Namespace:  Atalasoft.PdfDoc.Generating.Rendering
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public PathAction Action { get; }

Property Value

Type: PathAction
Examples
// print out every operation in a list of PdfPathOperations
foreach (PdfPathOperation op in ops) {
    string output = "";
    switch (op.Action) {
    case PathAction.Move: output = String.Format("Move({0})", op.Points[0]); break;
    case PathAction.Line: output = String.Format("Line({0})", op.Points[0]); break;
    case PathAction.Curve: output = String.Format("Curve({0}, {1}, {2})", op.Points[0], op.Points[1], op.Points[2]); break;
    case PathAction.Close: output = "Close"; break;
    }
    Console.WriteLine(output);
}
See Also