SignatureLine Class

Definition

Represents a Signature Line control in a view.

public ref class SignatureLine abstract
public abstract class SignatureLine
type SignatureLine = class
Public MustInherit Class SignatureLine
Inheritance
SignatureLine

Remarks

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

The SignatureLine class provides programmatic access to a Signature Line control in a view. To access an instance of the SignatureLine class associated with a Signature Line control, use the SignatureLineCollection that is associated with the view that contains the control. The following code example shows how to access a SignatureLine object that represents the first control in the current view.

SignatureLine mySignatureLine = 
   this.CurrentView.SignatureLines[0];
Dim mySignatureLine As SignatureLine = _
   Me.CurrentView.SignatureLines(0)

Only a subset of the properties of the Signature Line control are exposed through the SignatureLine class and its associated members of the object model. For example, the properties for specifying the size and tab index of the control can be set only by using the InfoPath designer. However, properties, such as the SuggestedSigner, SuggestedSignerTitle, and SuggestedSignerEmailAddress properties, can be used to get or set the name, title, and e-mail address of the suggested signer for the control. Use the Signature property to return a Signature object associated with the control, which you can then use to access the digital signature associated with the control. The Sign(String, String, String, String) method can be used to programmatically display the Sign dialog box to initiate signing.

Constructors

SignatureLine()

Properties

Id

Gets the value of the control ID property.

Signature

Gets the Signature object associated with the control.

SignatureAppearanceType

Gets a value that indicates the appearance of the control.

SuggestedSigner

Gets or sets the name of the suggested signer that is displayed in the control.

SuggestedSignerEmailAddress

Gets or sets the e-mail address of the suggested signer for the control.

SuggestedSignerTitle

Gets or sets the title of the suggested signer that is displayed in the control.

Methods

Sign(String, String, String, String)

Displays the Sign dialog box with the specified signature image or stamp, and the suggested signer name, title, and e-mail address.

Applies to