IInfoPathViewControl.Top property

Gets the offset, from the top of the view, of the current control in the enumeration.

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

Syntax

'Declaration
ReadOnly Property Top As Integer
    Get
'Usage
Dim instance As IInfoPathViewControl
Dim value As Integer

value = instance.Top
int Top { get; }

Property value

Type: System.Int32
The number of pixels the control is from the top of the view.

Remarks

Pixel coordinates are calculated using screenCoordinate values from the MSHTML.DLL document service, which are roughly equivalent to standard CSS values.

For a list of controls that are enumerated in the view, if present, see the GetControls method of the IInfoPathDataImporterFields interface.

For more information about programmatically importing data into an InfoPath form, see the InfoPath Developer Portal on the Microsoft Office Developer Center.

See also

Reference

IInfoPathViewControl interface

IInfoPathViewControl members

Microsoft.Office.Interop.InfoPath namespace