SignatureCollection.Item Property

Gets a reference to the specified Signature object from the SignatureCollection object.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
'Usage

Parameters

  • index
    The zero-based index for the Signature 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

The Signature object that corresponds to the specified index value.

Exceptions

Exception type Condition

IndexOutOfRangeException

The index value is out of range.

Remarks

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 Office InfoPath 2007.

Example

The following example returns the first Signature object in the SignatureCollection object for the first set of signable data in the form, or, if only the entire form can be signed, will return the first Signature object for the entire form.

Signature firstSignature = 
   this.SignedDataBlocks[0].Signatures[0];
Dim firstSignature As Signature  = 
   Me.SignedDataBlocks(0).Signatures(0)

See Also

Reference

SignatureCollection Class
SignatureCollection Members
Microsoft.Office.InfoPath Namespace