SignatureLineCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains all SignatureLine objects in the current view, which represent the Signature Line controls in that view.
public ref class SignatureLineCollection abstract : System::Collections::IEnumerable
public abstract class SignatureLineCollection : System.Collections.IEnumerable
type SignatureLineCollection = class
interface IEnumerable
Public MustInherit Class SignatureLineCollection
Implements IEnumerable
- Inheritance
-
SignatureLineCollection
- Implements
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
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.
Constructors
SignatureLineCollection() |
Properties
Count |
Gets the number of SignatureLine objects in the SignatureLineCollection. |
Item[Int32] |
Gets a reference to the specified SignatureLine object from the SignatureLineCollection. |
Methods
GetEnumerator() |
Gets a IEnumerator object that iterates over all entries in the SignatureLineCollection. |