Class SignatureLine

Class SignatureLine

Namespace: Aspose.Cells.Drawing
Assembly: Aspose.Cells.dll (25.2.0)

Represent the signature line.

public class SignatureLine

Inheritance

objectSignatureLine

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

csharp
[C#]

//Instantiating a Workbook object
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];

// Create signature line object
SignatureLine s = new SignatureLine();
s.Signer = "Simon";
s.Title = "Development";
s.Email = "simon@aspose.com";
s.Instructions = "Sign to confirm the excel content.";

// Adds a Signature Line to the worksheet.
Picture signatureLine = worksheet.Shapes.AddSignatureLine(0, 0, s);

//do your business

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

Constructors

SignatureLine()

public SignatureLine()

Properties

AllowComments

Indicates whether comments could be attached.

public bool AllowComments { get; set; }

Property Value

bool

Examples

csharp
[C#]
if(s.AllowComments)
{
    // Comments could be attached.
}

Email

Gets or sets the email of singer.

public string Email { get; set; }

Property Value

string

Examples

csharp
[C#]
// Create signature line object
SignatureLine s5 = new SignatureLine();
s5.Email = "Simon.Zhao@aspose.com";

Id

Gets or sets identifier for this signature line.

public Guid Id { get; set; }

Property Value

Guid

Examples

csharp
[C#]
// Create signature line object
SignatureLine s1 = new SignatureLine();
s1.Id = System.Guid.NewGuid();

Instructions

Gets or sets the text shown to user at signing time.

public string Instructions { get; set; }

Property Value

string

Examples

csharp
[C#]
// Create signature line object
SignatureLine s6 = new SignatureLine();
s6.Instructions = "Just do it.";

IsLine

Indicates whether it is a signature line.

public bool IsLine { get; set; }

Property Value

bool

Examples

csharp
[C#]
if(s.IsLine)
{
    //Is line.
}

ProviderId

Gets or sets the id of signature provider.

public Guid ProviderId { get; set; }

Property Value

Guid

Examples

csharp
[C#]
// Create signature line object
SignatureLine s2 = new SignatureLine();
s2.ProviderId = new Guid("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");//The GUID should be obtained from the documentation shipped with the provider.

Remarks

It’s typically the CLSID of the provider com add-in.

ShowSignedDate

Indicates whether show signed date.

public bool ShowSignedDate { get; set; }

Property Value

bool

Examples

csharp
[C#]
if(s.ShowSignedDate)
{
    //Show signed date.
}

SignatureLineType

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.

public SignatureType SignatureLineType { get; set; }

Property Value

SignatureType

Signer

Gets or sets the signer.

public string Signer { get; set; }

Property Value

string

Examples

csharp
[C#]
// Create signature line object
SignatureLine s3 = new SignatureLine();
s3.Signer = "Mr xxx";

Title

Gets or sets the title of singer.

public string Title { get; set; }

Property Value

string

Examples

csharp
[C#]
// Create signature line object
SignatureLine s4 = new SignatureLine();
s4.Title = "Development Lead";