Upravit

Sdílet prostřednictvím


SignatureLineCollection.GetEnumerator Method

Definition

Gets a IEnumerator object that iterates over all entries in the SignatureLineCollection.

public:
 abstract System::Collections::IEnumerator ^ GetEnumerator();
public abstract System.Collections.IEnumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.IEnumerator
Public MustOverride Function GetEnumerator () As IEnumerator

Returns

An enumerator for iterating over the entries in the collection.

Implements

Examples

The following code example iterates over the entire collection of SignatureLine objects and displays the value of the Comment property associated with each signature.

SignatureLineCollection mySignatures =
   this.CurrentView.SignatureLines;
System.Collections.IEnumerator sigEnum =
   mySignatures.GetEnumerator();
while (sigEnum.MoveNext())
{
   MessageBox.Show(((SignatureLine)sigEnum.Current)
      .Signature.Comment.ToString());
}
Dim mySignatures As SignatureLineCollection = _
   Me.CurrentView.SignatureLines
Dim sigEnum As System.Collections.IEnumerator = _
   mySignatures.GetEnumerator()
While sigEnum.MoveNext()
   MessageBox.Show(DirectCast(sigEnum.Current, SignatureLine) _
      .Signature.Comment.ToString())
End While

Remarks

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.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

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

Applies to