Click or drag to resize

IFieldListFindField Method

Finds a field by position.

Namespace:  MicroFocus.ZFE.Connector
Assembly:  MicroFocus.ZFE.Connector (in MicroFocus.ZFE.Connector.dll) Version: 1.1.30312.0 (1.1.30312.0)
Syntax
IField FindField(
	IPosition position
)

Parameters

position
Type: MicroFocus.ZFE.ConnectorIPosition
The position in which to search.

Return Value

Type: IField
A field that spans the specified position or null if the specified position does not correspond to a field.
Examples
Visual Basic for Applications:
Dim ps As PresentationSpace
Dim field As Field
Dim fieldList As FieldList
Dim pos As Position

Set ps = mySession.PresentationSpace
Set fieldList = ps.Fields
Set pos = New Position

pos.Row = 22
pos.Column = 1

Set field = fieldList.FindFieldWithText(pos)
If Not field Is Nothing Then
    ... use field object ...
End If
C#:
IPresentationSpace ps;
IField field;
IFieldList fieldList;
IPosition pos;

ps = mySession.PresentationSpace
fieldList = ps.Fields
pos = new Position { Row = 22; Column = 1; }


field = fieldList.Find(pos)
if (field != null)
{
    ... use field object ...
}
See Also