ShapeBaseIsSignatureLine Property
Indicates that shape is a SignatureLine.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public bool IsSignatureLine { get; }

Property Value

Type: Boolean
Examples
Shows how to create a line for a signature and insert it into a document.
// Create a blank document and its DocumentBuilder
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// The SignatureLineOptions will contain all the data that the signature line will display
SignatureLineOptions options = new SignatureLineOptions
{
    AllowComments = true,
    DefaultInstructions = true,
    Email = "john.doe@management.com",
    Instructions = "Please sign here",
    ShowDate = true,
    Signer = "John Doe",
    SignerTitle = "Senior Manager"
};

// Insert the signature line, applying our SignatureLineOptions
// We can control where the signature line will appear on the page using a combination of left/top indents and margin-relative positions
// Since we're placing the signature line at the bottom right of the page, we will need to use negative indents to move it into view 
Shape shape = builder.InsertSignatureLine(options, RelativeHorizontalPosition.RightMargin, -170.0, RelativeVerticalPosition.BottomMargin, -60.0, WrapType.None);
Assert.True(shape.IsSignatureLine);

// The SignatureLine object is a member of the shape that contains it
SignatureLine signatureLine = shape.SignatureLine;

Assert.AreEqual("john.doe@management.com", signatureLine.Email);
Assert.AreEqual("John Doe", signatureLine.Signer);
Assert.AreEqual("Senior Manager", signatureLine.SignerTitle);
Assert.AreEqual("Please sign here", signatureLine.Instructions);
Assert.True(signatureLine.ShowDate);

Assert.True(signatureLine.AllowComments);
Assert.True(signatureLine.DefaultInstructions);

// We will be prompted to sign it when we open the document
Assert.False(signatureLine.IsSigned);

// The object may be valid, but the signature itself isn't until it is signed
Assert.False(signatureLine.IsValid);

doc.Save(ArtifactsDir + "Drawing.SignatureLine.docx");
See Also