Share via


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