menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StoreRegion - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StoreRegion

    Specifies the Location of the store

    Inheritance
    System.Object
    StoreRegion
    Namespace: Syncfusion.Pdf.Security
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class StoreRegion : Enum
    Examples
    // Creates a new document
    PdfDocument document = new PdfDocument();
    //Creates a new page and adds it as the last page of the document
    PdfPage page = document.Pages.Add();
    //Find by subject.
    PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine);
    //Creates a signature.
    PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature");
    signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100));
    signature.ContactInfo = "[email protected]";
    signature.LocationInfo = "Honolulu, Hawaii";
    signature.Reason = "I am author of this document.";
    //Save the document.
    document.Save("output.pdf");
    //Close the document.
    document.Close(true);
    ' Creates a new document
    Dim document As New PdfDocument()
    'Creates a new page and adds it as the last page of the document
    Dim page As PdfPage = document.Pages.Add()
    'Find by subject.
    Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine)
    'Creates a signature.
    Dim signature As New PdfSignature(document, page, storeCertificate, "Signature")
    signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100))
    signature.ContactInfo = "[email protected]"
    signature.LocationInfo = "Honolulu, Hawaii"
    signature.Reason = "I am author of this document."
    'Save the document.
    document.Save("output.pdf")
    'Close the document.
    document.Close(True)

    Fields

    CurrentUser

    Certificate store used by current user.

    Declaration
    public const StoreRegion CurrentUser
    Field Value
    Type
    StoreRegion

    LocalMachine

    Certificate store assigned to local machine

    Declaration
    public const StoreRegion LocalMachine
    Field Value
    Type
    StoreRegion
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved