alexa
menu

Document Processing

    Show / Hide Table of Contents

    StampAnnotation Class

    Represents an annotation that displays a stamp on the page.

    Inheritance
    System.Object
    Annotation
    StampAnnotation
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    Annotation.Author
    Annotation.Color
    Annotation.Comments
    Annotation.CustomData
    Annotation.FillColor
    Annotation.FlattenOnSave
    Annotation.Hidden
    Annotation.IsLocked
    Annotation.ModifiedDate
    Annotation.Name
    Annotation.Opacity
    Annotation.PageNumber
    Annotation.PropertyChanged
    Annotation.Subject
    Annotation.Text
    Namespace: Syncfusion.Maui.PdfViewer
    Assembly: Syncfusion.Maui.PdfViewer.dll
    Syntax
    public class StampAnnotation : Annotation, INotifyPropertyChanged

    Constructors

    StampAnnotation(View, Int32, RectF)

    Initializes a new instance of the StampAnnotation class.

    Declaration
    public StampAnnotation(View view, int pageNumber, RectF bounds)
    Parameters
    Type Name Description
    Microsoft.Maui.Controls.View view

    The view to be added as custom stamp.

    System.Int32 pageNumber

    The page number to which the stamp should be added.

    Microsoft.Maui.Graphics.RectF bounds

    The bounds within the page in which the stamp should be added.

    Remarks

    When the PDF is saved, the view will be preserved as an image stamp in the saved document.

    StampAnnotation(StampType, Int32, PointF)

    Initializes a new instance of the StampAnnotation class.

    Declaration
    public StampAnnotation(StampType stampType, int pageNumber, PointF position)
    Parameters
    Type Name Description
    StampType stampType

    The type of the stamp.

    System.Int32 pageNumber

    The page number to which the line should be added.

    Microsoft.Maui.Graphics.PointF position

    The position in which the stamp should be added.

    StampAnnotation(Stream, Int32, RectF)

    Initializes a new instance of the StampAnnotation class.

    Declaration
    public StampAnnotation(Stream stamp, int pageNumber, RectF bounds)
    Parameters
    Type Name Description
    System.IO.Stream stamp

    The image that needs to be displayed in the stamp annotation.

    System.Int32 pageNumber

    The page number to which the line should be added.

    Microsoft.Maui.Graphics.RectF bounds

    The position in which the stamp should be added.

    Properties

    Bounds

    Gets or sets the bounds for the shape annotation.

    Declaration
    public RectF Bounds { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.RectF

    CustomStampView

    Gets or sets the view of stamp in which the annotation is added.

    Declaration
    public View CustomStampView { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.View

    IsSignature

    Gets or sets a value indicating whether this annotation should be considered as an electronic signature.

    Declaration
    public bool IsSignature { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    If this property is true, the annotation’s bounds can be changed, but its other properties cannot be modified.

    StampType

    Gets the type of a stamp annotation.

    Declaration
    public StampType StampType { get; set; }
    Property Value
    Type
    StampType

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved