Click or drag to resize

PdfArc Class

A Shape class for PdfGeneratedDocuments which draws Arcs, Chords and Pie segments.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.Generating.ShapesPdfBaseShape
    Atalasoft.PdfDoc.Generating.ShapesPdfArc

Namespace:  Atalasoft.PdfDoc.Generating.Shapes
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
public class PdfArc : PdfBaseShape

The PdfArc type exposes the following members.

Constructors
  NameDescription
Public methodPdfArc(PdfPoint, Double, Double, Double, IPdfColor)
Initializes a new instance of the PdfArc class.
Public methodPdfArc(PdfPoint, Double, Double, Double, IPdfColor, Double)
Initializes a new instance of the PdfArc class.
Public methodPdfArc(PdfPoint, Double, Double, Double, IPdfColor, PdfLineStyle, IPdfColor)
Initializes a new instance of the PdfArc class.
Public methodPdfArc(PdfPoint, Double, Double, Double, IPdfColor, Double, IPdfColor)
Initializes a new instance of the PdfArc class.
Top
Properties
  NameDescription
Public propertyCenter
Gets or sets the center.
Public propertyClip
Gets or sets a value indicating whether this PdfBaseShape shape will clip.
(Inherited from PdfBaseShape.)
Public propertyClockwise
Gets or sets a value indicating whether this PdfArc is clockwise.
Public propertyEndAngle
Gets or sets the end angle.
Public propertyFillColor
Gets or sets the color of the fill.
(Inherited from PdfBaseShape.)
Public propertyIncludeWedge
Gets or sets a value indicating whether to include the wedge of the arc.
Public propertyLocation
Gets or sets the location.
(Inherited from PdfBaseShape.)
Public propertyName
Gets or sets the name of the IPdfRenderable object.
(Inherited from PdfBaseShape.)
Public propertyOutlineColor
Gets or sets the color of the outline.
(Inherited from PdfBaseShape.)
Public propertyRadius
Gets or sets the radius.
Public propertyRotation
Gets or sets the rotation in degrees.
(Inherited from PdfBaseShape.)
Public propertyScale
Gets or sets the scale.
(Inherited from PdfBaseShape.)
Public propertyStartAngle
Gets or sets the start angle.
Public propertyStyle
Gets or sets the style.
(Inherited from PdfBaseShape.)
Top
Methods
  NameDescription
Public methodClone
Creates a new object that is a copy of the current instance.
(Inherited from PdfBaseShape.)
Protected methodCloneInstance
Clones the instance.
(Overrides PdfBaseShapeCloneInstance.)
Public methodCopyBaseShapePropertiesTo
Copies the base shape properties to the parameter shape.
(Inherited from PdfBaseShape.)
Protected methodDrawShape
Draws the shape.
(Overrides PdfBaseShapeDrawShape(PdfPageRenderer).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGenerateTransform
Generates the default transform based on Scale, Rotate, and Translate.
(Inherited from PdfBaseShape.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotifyResourceRenamed
Notifies a resource consumer that a resource was renamed.
(Inherited from PdfBaseShape.)
Protected methodOnResourceRenamed
Called when a resource in the base shape has been renamed.
(Inherited from PdfBaseShape.)
Protected methodOnResourcesRequested
Called when the PdfBaseShape is requested to report resources used. If client code consumes resources, it should override this method combining its results with those of base.OnResourceRequested
(Inherited from PdfBaseShape.)
Public methodRender
Generates the PDF.
(Inherited from PdfBaseShape.)
Public methodResourcesUsed
Reports a list of all resources consumed by the object of the given class.
(Inherited from PdfBaseShape.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
PdfGeneratedDocument doc = new PdfGeneratedDocument();
PdfGeneratedPage page = PdfDefaultPages.Letter;
doc.Pages.Add(page);
PdfCircle circle = new PdfCircle(new PdfPoint(100, 100), 100, PdfColorFactory.FromRgb(1, 0, 0), 1);
page.DrawingList.Add(circle);
PdfArc arc = new PdfArc(new PdfPoint(100, 100), 100, 315, 45, PdfColorFactory.FromGray(0), 1);
arc.Style.DashPattern = new double[] { 4, 2 };
arc.IncludeWedge = true;
arc.Clockwise = false;
page.DrawingList.Add(arc);
See Also