[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISignature.Sign

Sign Method

Sign(X509Certificate2, Stream, SignatureDetails)

Creates a signature packet for visible signature line.

Declaration
void Sign(X509Certificate2 certificate, Stream signatureImage, SignatureDetails details)
Parameters
Type Name Description
X509Certificate2 certificate

The certificate that will be used to sign the workbook.

Stream signatureImage

The signature image of the signature line.

SignatureDetails details

The signature detail of the signature.

Exceptions
Type Condition
InvalidOperationException

Attempted to sign a non-visible signature line.

Sign(X509Certificate2, string, SignatureDetails)

Creates a signature packet for visible signature line.

Declaration
void Sign(X509Certificate2 certificate, string signatureText, SignatureDetails details)
Parameters
Type Name Description
X509Certificate2 certificate

The certificate that will be used to sign the workbook.

string signatureText

The signature text of the signature line.

SignatureDetails details

The signature detail of the signature.

Exceptions
Type Condition
InvalidOperationException

Attempted to sign a non-visible signature line.

Sign(X509Certificate2, SignatureDetails)

Creates a signature packet for non-visible signature line.

Declaration
void Sign(X509Certificate2 certificate, SignatureDetails details)
Parameters
Type Name Description
X509Certificate2 certificate

The certificate that will be used to sign the workbook.

SignatureDetails details

The signature detail of the signature.

Exceptions
Type Condition
InvalidOperationException

Attempted to sign a visible signature line.