[]
Adds a signature line to a worksheet where signatures are collected.
Only the Microsoft Office signature line is supported. Other signature line providers, such as stamp signatures, are not supported.
After the signature line is created, you can use ISignatureSetup to specify signer information and signing instructions.
ISignature AddSignatureLine(IWorksheet worksheet, double left, double top, double width = 192, double height = 100.5)
Function AddSignatureLine(worksheet As IWorksheet, left As Double, top As Double, Optional width As Double = 192, Optional height As Double = 100.5) As ISignature
| Type | Name | Description |
|---|---|---|
| IWorksheet | worksheet | The worksheet to which the signature line shape is added. |
| double | left | The distance, in points, from the left edge of the worksheet to the signature line shape. |
| double | top | The distance, in points, from the top edge of the worksheet to the signature line shape. |
| double | width | The width, in points, of the signature line shape. |
| double | height | The height, in points, of the signature line shape. |
| Type | Description |
|---|---|
| ISignature | The created ISignature object. |
ISignature signature = workbook.Signatures.AddSignatureLine(worksheet, 100.0, 50.0, 192.0, 100.5);
ISignatureSetup setup = signature.Setup;
setup.SuggestedSigner = "Shinzo Nagama";
setup.SigningInstructions = "Please check the content before signing.";