Aspose::Cells::Drawing::SignatureLine class
Contents
[
Hide
]SignatureLine class
Represent the signature line.
class SignatureLine
Methods
Method | Description |
---|---|
GetAllowComments() | Indicates whether comments could be attached. |
GetEmail() | Gets and sets the email of singer. |
GetId(UUID& uuid) | Gets or sets identifier for this signature line. |
GetInstructions() | Gets and sets the text shown to user at signing time. |
GetProviderId(UUID& uuid) | Gets and sets the id of signature provider. |
GetShowSignedDate() | Indicates whether show signed date. |
GetSigner() | Gets and sets the signer. |
GetTitle() | Gets and sets the title of singer. |
IsLine() | Indicates whether it is a signature line. |
IsNull() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const SignatureLine& src) | operator= |
SetAllowComments(bool value) | Indicates whether comments could be attached. |
SetEmail(const U16String& value) | Gets and sets the email of singer. |
SetEmail(const char16_t* value) | Gets and sets the email of singer. |
SetId(const UUID& value) | Gets or sets identifier for this signature line. |
SetInstructions(const U16String& value) | Gets and sets the text shown to user at signing time. |
SetInstructions(const char16_t* value) | Gets and sets the text shown to user at signing time. |
SetIsLine(bool value) | Indicates whether it is a signature line. |
SetProviderId(const UUID& value) | Gets and sets the id of signature provider. |
SetShowSignedDate(bool value) | Indicates whether show signed date. |
SetSigner(const U16String& value) | Gets and sets the signer. |
SetSigner(const char16_t* value) | Gets and sets the signer. |
SetTitle(const U16String& value) | Gets and sets the title of singer. |
SetTitle(const char16_t* value) | Gets and sets the title of singer. |
SignatureLine() | Default constructor. |
SignatureLine(SignatureLine_Impl* impl) | Constructs from an implementation object. |
SignatureLine(const SignatureLine& src) | Copy constructor. |
~SignatureLine() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
Worksheet worksheet = workbook.GetWorksheets().Get(0);
//Adding a picture
int imgIndex = worksheet.GetPictures().Add(1, 1, u"sample.png");
Picture pic = worksheet.GetPictures().Get(imgIndex);
// Create signature line object
SignatureLine s;
s.SetSigner(u"Simon Zhao");
s.SetTitle(u"Development Lead");
s.SetEmail(u"Simon.Zhao@aspose.com");
// Assign the signature line object to Picture.SignatureLine property
pic.SetSignatureLine(s);
//Save the excel file.
workbook.Save("result.xlsx");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++