public class SignatureLine
extends java.lang.Object
Example
//Instantiating a Workbook object
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.getWorksheets().get(0);
// Create signature line object
SignatureLine s = new SignatureLine();
s.setSigner("Simon");
s.setTitle("Development");
s.setEmail("simon@aspose.com");
s.setInstructions("Sign to confirm the excel content.");
// Adds a Signature Line to the worksheet.
Picture signatureLine = worksheet.getShapes().addSignatureLine(0, 0, s);
//do your business
//Save the excel file.
workbook.save("result.xlsx");
| Constructor and Description |
|---|
SignatureLine() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowComments()
Indicates whether comments could be attached.
|
java.lang.String |
getEmail()
Gets the email of singer.
|
java.util.UUID |
getId()
Gets identifier for this signature line.
|
java.lang.String |
getInstructions()
Gets the text shown to user at signing time.
|
java.util.UUID |
getProviderId()
Gets the id of signature provider.
|
boolean |
getShowSignedDate()
Indicates whether show signed date.
|
int |
getSignatureLineType()
Gets the signature type.
|
java.lang.String |
getSigner()
Gets the signer.
|
java.lang.String |
getTitle()
Gets the title of singer.
|
boolean |
isLine()
Indicates whether it is a signature line.
|
void |
setAllowComments(boolean value)
Indicates whether comments could be attached.
|
void |
setEmail(java.lang.String value)
Sets the email of singer.
|
void |
setId(java.util.UUID value)
Sets identifier for this signature line.
|
void |
setInstructions(java.lang.String value)
Sets the text shown to user at signing time.
|
void |
setLine(boolean value)
Indicates whether it is a signature line.
|
void |
setProviderId(java.util.UUID value)
Sets the id of signature provider.
|
void |
setShowSignedDate(boolean value)
Indicates whether show signed date.
|
void |
setSignatureLineType(int value)
Sets the signature type.
|
void |
setSigner(java.lang.String value)
Sets the signer.
|
void |
setTitle(java.lang.String value)
Sets the title of singer.
|
public java.util.UUID getId()
Example
// Create signature line object
SignatureLine s1 = new SignatureLine();
s1.setId(java.util.UUID.randomUUID());
public void setId(java.util.UUID value)
public java.util.UUID getProviderId()
Remarks
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.fromString("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"));//The GUID should be obtained from the documentation shipped with the provider.
public void setProviderId(java.util.UUID value)
Remarks
It's typically the CLSID of the provider com add-in.public java.lang.String getSigner()
Example
// Create signature line object
SignatureLine s3 = new SignatureLine();
s3.setSigner("Mr xxx");
public void setSigner(java.lang.String value)
public java.lang.String getTitle()
Example
// Create signature line object
SignatureLine s4 = new SignatureLine();
s4.setTitle("Development Lead");
public void setTitle(java.lang.String value)
public java.lang.String getEmail()
Example
// Create signature line object
SignatureLine s5 = new SignatureLine();
s5.setEmail("Simon.Zhao@aspose.com");
public void setEmail(java.lang.String value)
public boolean isLine()
Example
if(s.isLine())
{
//Is line.
}
public void setLine(boolean value)
public boolean getAllowComments()
Example
if(s.getAllowComments())
{
// Comments could be attached.
}
public void setAllowComments(boolean value)
public boolean getShowSignedDate()
Example
if(s.getShowSignedDate())
{
//Show signed date.
}
public void setShowSignedDate(boolean value)
public java.lang.String getInstructions()
Example
// Create signature line object
SignatureLine s6 = new SignatureLine();
s6.setInstructions("Just do it.");
public void setInstructions(java.lang.String value)
public int getSignatureLineType()
See SignatureType.
public void setSignatureLineType(int value)
See SignatureType.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.