| EllipseAnnotationCreate Method |
Create an ellipse annotation.
The returned ellipse annotation is not yet part of any page.
It can be added to a page's list of annotations.
Namespace: PdfTools.Toolbox.Pdf.AnnotationsAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax public static EllipseAnnotation Create(
Document targetDocument,
Rectangle boundingBox,
Stroke stroke,
Paint fill
)
Parameters
- targetDocument Document
-
The output document with which the returned object is associated.
- boundingBox Rectangle
-
The location on the page.
- stroke Stroke
-
The stroking parameters used for stroking the ellipse.
The stroking paint is used as the annotation's main paint.
If then the ellipse is not stroked.
- fill Paint
-
The paint used for filling the ellipse.
If then the ellipse is not filled.
Return Value
EllipseAnnotation
The newly created ellipse annotation.
Exceptions Exception | Condition |
---|
ArgumentException | if the targetDocument has already been closed |
ArgumentException | if the targetDocument is read-only |
ArgumentException | if the stroke and fill arguments are both |
ArgumentException | if the stroke argument is not associated with targetDocument |
ArgumentException | if the stroke's Paint has a ColorSpace other than a device color space |
ArgumentException | if the stroke's Paint has a non-Transparency with BlendMode other than Normal |
ArgumentException | if the stroke argument's LineCapStyle is other than Butt |
ArgumentException | if the stroke argument's LineJoinStyle is other than Miter |
ArgumentException | if the stroke argument's MiterLimit is other than 10 |
ArgumentException | if the stroke argument's DashPhase is other than 0 |
ArgumentException | if the fill has a ColorSpace other than a device color space |
ArgumentException | if the fill has a non-Transparency with BlendMode other than Normal |
ArgumentException | if the fill argument is not associated with targetDocument |
ArgumentNullException | if targetDocument is . |
See Also