SignatureLineCollection.Item[Int32] Property
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.
Gets a reference to the specified SignatureLine object from the SignatureLineCollection.
public:
abstract property Microsoft::Office::InfoPath::SignatureLine ^ default[int] { Microsoft::Office::InfoPath::SignatureLine ^ get(int index); };
public abstract Microsoft.Office.InfoPath.SignatureLine this[int index] { get; }
member this.Item(int) : Microsoft.Office.InfoPath.SignatureLine
Default Public MustOverride ReadOnly Property Item(index As Integer) As SignatureLine
Parameters
- index
- Int32
The zero-based index for the SignatureLine object to return. The value specified must be a number from 0 to the value of the collection's Count property minus 1.
Property Value
An object that represents a Signature Line control in the collection.
Exceptions
The parameter passed to this method is a null reference (Nothing in Visual Basic).
The parameter passed to this method is not valid. For example, it is of the wrong type or format.
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;
foreach (SignatureLine myLine in mySignatures)
{
MessageBox.Show(myLine.Signature.Comment.ToString());
}
Dim mySignatures As SignatureLineCollection = _
Me.CurrentView.SignatureLines
For Each myLine As SignatureLine In mySignatures
MessageBox.Show(myLine.Signature.Comment.ToString())
Next
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.