Share via


View3.SelectText method (IXMLDOMNode, Object)

Selects the text contained in an editable field that is bound to the specified XML Document Object Model (DOM) node.

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

Syntax

'Declaration
Sub SelectText ( _
    pxnField As IXMLDOMNode, _
    varViewContext As Object _
)
'Usage
Dim instance As View3
Dim pxnField As IXMLDOMNode
Dim varViewContext As Object

instance.SelectText(pxnField, varViewContext)
void SelectText(
    IXMLDOMNode pxnField,
    Object varViewContext
)

Parameters

  • varViewContext
    Type: System.Object

    The ID of the control that is used for the context, which is an element with the specified view context of xd:CtrlId.

Implements

View2.SelectText(IXMLDOMNode, Object)

Remarks

If a view context is specified, then the editable field that is to be selected must be within that context.

If there is more than one set of view elements which map to the same specified XML DOM node, within the given view context, then the SelectText method will return an error. In addition, if any of the arguments to the SelectText method are a null reference (Nothing in Visual Basic) or are not exposed in the view, then the SelectText method will also return an error.

See also

Reference

View3 interface

View3 members

SelectText overload

Microsoft.Office.Interop.InfoPath namespace