Share via


View3.SelectNodes method (IXMLDOMNode, Object, Object)

Selects a range of nodes in a view based on the specified starting XML Document Object Model (DOM) node, the ending XML DOM node, and the view context.

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

Syntax

'Declaration
Sub SelectNodes ( _
    pxnStartNode As IXMLDOMNode, _
    varEndNode As Object, _
    varViewContext As Object _
)
'Usage
Dim instance As View3
Dim pxnStartNode As IXMLDOMNode
Dim varEndNode As Object
Dim varViewContext As Object

instance.SelectNodes(pxnStartNode, varEndNode, _
    varViewContext)
void SelectNodes(
    IXMLDOMNode pxnStartNode,
    Object varEndNode,
    Object varViewContext
)

Parameters

  • varEndNode
    Type: System.Object

    The XML DOM node that ends the range. If not specified, only the starting XML DOM node will be used.

  • 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.SelectNodes(IXMLDOMNode, Object, Object)

Remarks

If a view context is specified, all of the XML DOM nodes that are to be selected must be within that context.

If any of the arguments to the SelectNodes method are null or are not exposed in the view, the SelectNodes method will return an error. In addition, if there are more than one set of view elements which map to the same specified XML DOM nodes, within the specified view context, then the SelectNodes method will also return an error.

Note

The SelectNodes method requires that the nodes be structurally selectable in the view.

See also

Reference

View3 interface

View3 members

SelectNodes overload

Microsoft.Office.Interop.InfoPath namespace