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
Public MustOverride ReadOnly Default Property Item ( _
    index As Integer _
) As Signature
    Get
'Usage
Dim instance As SignatureCollection
Dim index As Integer
Dim value As Signature

value = instance(index)
public abstract Signature this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    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

Type: Microsoft.Office.InfoPath.Signature
The Signature object that corresponds to the specified index value.

Exceptions

Exception 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 InfoPath Filler.

Examples

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