Partager via


SignatureLineCollection.Count Property

Gets the number of SignatureLine objects in the SignatureLineCollection.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SignatureLineCollection
Dim value As Integer

value = instance.Count
public abstract int Count { get; }

Property Value

Type: System.Int32
The number of objects in the collection.

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 code example displays the count of signature lines in the current view.

SignatureLineCollection mySignatures = 
   this.CurrentView.SignatureLines;
MessageBox.Show("There are " + mySignatures.Count.ToString() + 
   " signature lines in the current view.");
Dim mySignatures As SignatureLineCollection = _
   Me.CurrentView.SignatureLines
MessageBox.Show("There are " & mySignatures.Count.ToString() & _
   " signature lines in the current view.")

See Also

Reference

SignatureLineCollection Class

SignatureLineCollection Members

Microsoft.Office.InfoPath Namespace