[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.StampAnnotation

Class StampAnnotation

Namespace
GrapeCity.Documents.Pdf.Annotations
Assembly
GcDocs.Pdf.dll

Represents an annotation that displays text or graphics intended to look as if they were stamped on the page with a rubber stamp.

public class StampAnnotation : MarkupAnnotation, IOwnedObject, IContentItem, IPdfDict
Inheritance
object
StampAnnotation
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

StampAnnotation()

Initializes a new instance of the StampAnnotation class.

public StampAnnotation()

Properties

BorderWidth

Gets or sets the border width.

public float BorderWidth { get; set; }

Property Value

float

CreationDateFormat

Gets or sets the format which should be used to display CreationDate.

public string CreationDateFormat { get; set; }

Property Value

string

Font

Gets or sets a font to draw the stamp.

public Font Font { get; set; }

Property Value

Font

Icon

Gets or sets a string specifying the name of an icon used to display the annotation.

The PDF specification provides a predefined set of icons, those are provided by the StampAnnotationIcon enumeration.

In practice though this entry often contains names of custom icons specific to the application that created the document, hence this property is a string so it can accommodate arbitrary values.

To assign a predefined icon, use code like the following:
Icon = StampAnnotationIcon.Approved.ToString();
public string Icon { get; set; }

Property Value

string

RotationAngle

Gets the angle, in degrees, by which the stamp is rotated. Positive values indicate counterclockwise rotation.

public float RotationAngle { get; }

Property Value

float

ShowCreationDate

Gets or sets a value indicating whether to show CreationDate on the stamp.

public bool ShowCreationDate { get; set; }

Property Value

bool

ShowUserName

Gets or sets a value indicating whether to show UserName on the stamp.

public bool ShowUserName { get; set; }

Property Value

bool

Methods

RotateContent(float)

Rotates the annotation content by the specified angle. Positive values indicate counterclockwise rotation.

Note that the annotation must be added to a document before calling this method.

public void RotateContent(float angleDegrees)

Parameters

angleDegrees float

The rotation angle in degrees.