[]
Corresponds to a digital signature that is attached to a document.
public interface ISignature
Gets a bool value indicating whether the user can set properties of the GrapeCity.Documents.Excel.Signature object. Read-only.
bool CanSetup { get; }
Gets information about a signature. Read-only.
IReadOnlySignatureDetails Details { get; }
Gets a value indicating whether this is a signature line. Read-only.
bool IsSignatureLine { get; }
Gets a bool value indicating whether the document was signed successfully. Read-only.
bool IsSigned { get; }
Determines if the digital signature that corresponds to the Signature object is a valid signature.
bool IsValid { get; }
Returns the Parent object for the specified object.
ISignatureSet Parent { get; }
Gets a ISignatureSetup object that provides access to various properties of a signature packet. Read-only.
ISignatureSetup Setup { get; }
Gets the Shape object associated with a Signature object that is a signature line. Read-only.
IShape SignatureLineShape { get; }
Returns an Object representing the date and time that the digital certificate corresponding to the Signature object was attached to the document.
DateTime? SignDate { get; }
Countersign the signature, if the signature has been signed.
void Countersign(X509Certificate2 certificate)
certificate
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate that will be used to countersign this signature.
The signature was not signed.
Deletes the signature.
void Delete()
Creates a signature packet for non-visible signature line.
void Sign(X509Certificate2 certificate, SignatureDetails details)
certificate
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate that will be used to sign the workbook.
details
SignatureDetailsThe signature detail of the signature.
Attempted to sign a visible signature line.
Creates a signature packet for visible signature line.
void Sign(X509Certificate2 certificate, Stream signatureImage, SignatureDetails details)
certificate
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate that will be used to sign the workbook.
signatureImage
System.IO.StreamThe signature image of the signature line.
details
SignatureDetailsThe signature detail of the signature.
Attempted to sign a non-visible signature line.
Creates a signature packet for visible signature line.
void Sign(X509Certificate2 certificate, string signatureText, SignatureDetails details)
certificate
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate that will be used to sign the workbook.
signatureText
stringThe signature text of the signature line.
details
SignatureDetailsThe signature detail of the signature.
Attempted to sign a non-visible signature line.