JavaScript is disabled on your browser.
java.lang.Object
com.aspose.cells.SignatureLine
public class SignatureLine extends java.lang.Object
Represent the signature line.
Example:
//Instantiating a Workbook object
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.getWorksheets().get(0);
//Adding a picture
int imgIndex = worksheet.getPictures().add(1, 1, "sample.png");
Picture pic = worksheet.getPictures().get(imgIndex);
// Create signature line object
SignatureLine s = new SignatureLine();
s.setSigner("Simon Zhao");
s.setTitle("Development Lead");
s.setEmail("Simon.Zhao@aspose.com");
// Assign the signature line object to Picture.SignatureLine property
pic.setSignatureLine(s);
//do your business
//Save the excel file.
workbook.save("result.xlsx");
SignatureLine
public SignatureLine ()
Property Getters/Setters Detail
getId/setId
public java.util.UUID getId () / public void setId (java.util.UUID value)
Gets or sets identifier for this signature line.
Example:
// Create signature line object
SignatureLine s1 = new SignatureLine();
s1.setId(java.util.UUID.randomUUID());
getProviderId/setProviderId
public java.util.UUID getProviderId () / public void setProviderId (java.util.UUID value)
Gets and sets the id of signature provider.
It's typically the CLSID of the provider com add-in.
Example:
// Create signature line object
SignatureLine s2 = new SignatureLine();
s2.setProviderId(java.util.UUID.randomUUID());
getSigner/setSigner
public java.lang.String getSigner () / public void setSigner (java.lang.String value)
Gets and sets the signer.
Example:
// Create signature line object
SignatureLine s3 = new SignatureLine();
s3.setSigner("Mr xxx");
getTitle/setTitle
public java.lang.String getTitle () / public void setTitle (java.lang.String value)
Gets and sets the title of singer.
Example:
// Create signature line object
SignatureLine s4 = new SignatureLine();
s4.setTitle("Development Lead");
getEmail/setEmail
public java.lang.String getEmail () / public void setEmail (java.lang.String value)
Gets and sets the email of singer.
Example:
// Create signature line object
SignatureLine s5 = new SignatureLine();
s5.setEmail("Simon.Zhao@aspose.com");
isLine/setLine
public boolean isLine () / public void setLine (boolean value)
Indicates whether it is a signature line.
Example:
if(s.isLine())
{
//Is line.
}
getAllowComments/setAllowComments
public boolean getAllowComments () / public void setAllowComments (boolean value)
Indicates whether comments could be attached.
Example:
if(s.getAllowComments())
{
// Comments could be attached.
}
getShowSignedDate/setShowSignedDate
public boolean getShowSignedDate () / public void setShowSignedDate (boolean value)
Indicates whether show signed date.
Example:
if(s.getShowSignedDate())
{
//Show signed date.
}
getInstructions/setInstructions
public java.lang.String getInstructions () / public void setInstructions (java.lang.String value)
Gets and sets the text shown to user at signing time.
Example:
// Create signature line object
SignatureLine s6 = new SignatureLine();
s6.setInstructions("Just do it.");
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.