Click or drag to resize
Pdf Library for .NET

PdfBezierCurveElement Class

Represents a cubic Bezier curve drawn in a pdf document. A Bezier curve is specified by 4 points: a start point, two control points, and an end point. The curve is stroke-only (no fill) using ForeColor (black by default) and LineStyle.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfPageElement
    SelectPdf.UniversalPdfElement
      SelectPdf.UniversalPdfBezierCurveElement

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfBezierCurveElement : PdfElement

The PdfBezierCurveElement type exposes the following members.

Constructors
 NameDescription
Public methodPdfBezierCurveElement(PointF, PointF, PointF, PointF) Convenience overload — constructs a Bezier curve element from four PointF values.
Public methodPdfBezierCurveElement(Single, Single, Single, Single, Single, Single, Single, Single) Constructs a Bezier curve element.
Top
Properties
 NameDescription
Public propertyActualText Gets or sets the exact text represented by this element (the structure element's /ActualText entry), used when the drawn glyphs do not map to readable text.
(Inherited from PdfPageElement)
Public propertyAlternateText Gets or sets the alternate text describing this element for assistive technology (the structure element's /Alt entry). Required on figures for PDF/UA conformance.
(Inherited from PdfPageElement)
Public propertyArtifact Gets or sets a value indicating whether this element is an artifact — decorative or layout content that carries no meaning and is excluded from the logical structure (backgrounds, rules, running headers). Takes precedence over TagType.
(Inherited from PdfPageElement)
Public propertyBackColor Gets or sets the background fill color.
(Inherited from PdfElement)
Public propertyBlending Gets or sets the blending mode.
(Inherited from PdfElement)
Public propertyColorSpace Gets or sets the color space for the pdf element rendering.
(Inherited from PdfElement)
Public propertyForeColor Gets or sets the foreground color used for drawing outlines and text.
(Inherited from PdfElement)
Public propertyGradient Gets or sets the gradient fill. When set, overrides BackColor for fills.
(Inherited from PdfElement)
Public propertyLineStyle Gets or sets the line style for outline drawing.
(Inherited from PdfElement)
Public propertyRotated Gets a value indicating whether a rotation has been applied.
(Inherited from PdfElement)
Public propertyScaled Gets a value indicating whether a scale has been applied.
(Inherited from PdfElement)
Public propertySkewed Gets a value indicating whether a skew has been applied.
(Inherited from PdfElement)
Public propertyTagType Gets or sets the structure type used to tag this element in a tagged (accessible) document. Ignored unless the document's tagged mode (PdfDocument.Tagged) is enabled. Null (default) leaves the element untagged unless Artifact is set.
(Inherited from PdfPageElement)
Public propertyTranslated Gets a value indicating whether a translation has been applied.
(Inherited from PdfElement)
Public propertyTransparency Gets or sets the transparency level (0 = completely transparent, 100 = completely opaque).
(Inherited from PdfElement)
Public propertyX1The start point X coordinate.
Public propertyX2The first control point X coordinate.
Public propertyX3The second control point X coordinate.
Public propertyX4The end point X coordinate.
Public propertyY1The start point Y coordinate.
Public propertyY2The first control point Y coordinate.
Public propertyY3The second control point Y coordinate.
Public propertyY4The end point Y coordinate.
Top
Methods
 NameDescription
Public methodRotate Applies a rotation transformation.
(Inherited from PdfElement)
Public methodScale Applies a scale transformation.
(Inherited from PdfElement)
Public methodSkew Applies a skew transformation.
(Inherited from PdfElement)
Public methodTranslate Applies a translation transformation.
(Inherited from PdfElement)
Top
Example
PdfDocument document = new PdfDocument();
PdfPage page = document.AddPage();
PdfBezierCurveElement curve =
    new PdfBezierCurveElement(20, 100, 80, 20, 160, 180, 220, 100);
curve.ForeColor = new PdfColor(0, 120, 215);
page.Add(curve);
document.Save("out.pdf");
document.Close();
See Also