SignatureLineCollection Class
Contains all SignatureLine objects in the current view, which represent the Signature Line controls in that view.
Inheritance Hierarchy
System.Object
Microsoft.Office.InfoPath.SignatureLineCollection
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
Syntax
'Declaration
Public MustInherit Class SignatureLineCollection _
Implements IEnumerable
'Usage
Dim instance As SignatureLineCollection
public abstract class SignatureLineCollection : IEnumerable
Remarks
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.
To access the SignatureLineCollection for the current view, use the SignatureLines property of the View class.
The order of the SignatureLine objects in the collection corresponds to the value of the Tab index property assigned to each control when you add it to the view. To specify that value, open the form template in the InfoPath designer, right-click the control, click Signature Line Properties, click Advanced, and then set the Tab index property of the control.
Important
When a form template has more than one view and other views contain Signature Line controls, be aware that looping through an instance of the SignatureLineCollection accesses only the set of SignatureLine objects that represent the Signature Line controls in the current view. To access the SignatureLine objects for the Signature Line controls in other views, you must use the SwitchView(String) method to switch to a different view before looping through that view's SignatureLineCollection.
Examples
The following code example shows how to return the SignatureLineCollection associated with the current view.
SignatureLineCollection mySignatures =
this.CurrentView.SignatureLines;
Dim mySignatures As SignatureLineCollection = _
Me.CurrentView.SignatureLines
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.