Class SignatureLine

SignatureLine class

Represent the signature line.

public class SignatureLine

Constructors

NameDescription
SignatureLine()The default constructor.

Properties

NameDescription
AllowComments { get; set; }Indicates whether comments could be attached.
Email { get; set; }Gets or sets the email of singer.
Id { get; set; }Gets or sets identifier for this signature line.
Instructions { get; set; }Gets or sets the text shown to user at signing time.
IsLine { get; set; }Indicates whether it is a signature line.
ProviderId { get; set; }Gets or sets the id of signature provider.
ShowSignedDate { get; set; }Indicates whether show signed date.
SignatureLineType { get; set; }Gets or sets the signature type. Default - When the default value is set, the corresponding ProviderId value is fixed to {0000000000-0000-0000-0000-0000000000}. Stamp - When the value is Stamp, the corresponding ProviderId value is usually {000CD6A4-0000-0000-C000-000000000046}. Custom - When the value is Custom, the corresponding ProviderId value usually needs to be set by the user. it should be obtained from the documentation shipped with the provider.
Signer { get; set; }Gets or sets the signer.
Title { get; set; }Gets or sets the title of singer.

Examples

namespace AsposeCellsExamples
{
    using Aspose.Cells;
    using Aspose.Cells.Drawing;
    using System;

    public class SignatureLineDemo
    {
        public static void SignatureLineExample()
        {
            // Instantiating a Workbook object
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Adding a picture
            int imgIndex = worksheet.Pictures.Add(1, 1, "SignatureLineExample_original.png");
            Picture pic = worksheet.Pictures[imgIndex];

            // Create signature line object
            SignatureLine s = new SignatureLine();
            s.Signer = "Simon Zhao";
            s.Title = "Development Lead";
            s.Email = "Simon.Zhao@aspose.com";
            s.Id = Guid.NewGuid();
            s.ProviderId = Guid.NewGuid();
            s.IsLine = true;
            s.AllowComments = true;
            s.ShowSignedDate = true;
            s.Instructions = "Just do it.";

            // Assign the signature line object to Picture.SignatureLine property
            pic.SignatureLine = s;

            // Save the excel file
            workbook.Save("SignatureLineExample.xlsx");
        }
    }
}

See Also