Represents a Signature Line control in a view.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.
The class provides programmatic access to a Signature Line control in a view. To access an instance of the 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 object that represents the first control in the current view.
Only a subset of the properties of the Signature Line control are exposed through the 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.