ShapeCollection.AddSignatureLine
ShapeCollection.AddSignatureLine method
Adds a Signature Line to the worksheet.
public Picture AddSignatureLine(int upperLeftRow, int upperLeftColumn, SignatureLine signatureLine)
Parameter | Type | Description |
---|---|---|
upperLeftRow | Int32 | Upper left row index. |
upperLeftColumn | Int32 | Upper left column index. |
signatureLine | SignatureLine | Represents a signature line object. |
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
namespace AsposeCellsExamples
{
public class ShapeCollectionMethodAddSignatureLineWithInt32Int32SignatureLineDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
ShapeCollection shapes = worksheet.Shapes;
SignatureLine signatureLine = new SignatureLine();
signatureLine.AllowComments = true;
signatureLine.Email = "example@example.com";
signatureLine.Instructions = "Sign to confirm the excel content.";
signatureLine.IsLine = true;
signatureLine.ShowSignedDate = true;
signatureLine.Signer = "User";
signatureLine.Title = "tester";
Picture addedSignature = shapes.AddSignatureLine(100, 100, signatureLine);
workbook.Save("SignatureLineDemo.xlsx");
}
}
}
See Also
- class Picture
- class SignatureLine
- class ShapeCollection
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells