Share via


SignatureLine Class

Represents a Signature Line control in a view.

Inheritance Hierarchy

System.Object
  Microsoft.Office.InfoPath.SignatureLine

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustInherit Class SignatureLine
'Usage
Dim instance As SignatureLine
public abstract class 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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SignatureLine Members

Microsoft.Office.InfoPath Namespace