Düzenle

Aracılığıyla paylaş


View3.SelectText(IXMLDOMNode, Object) Method

Definition

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

public void SelectText (Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMNode pxnField, object varViewContext);
abstract member SelectText : Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMNode * obj -> unit
Public Sub SelectText (pxnField As IXMLDOMNode, Optional varViewContext As Object)

Parameters

pxnField
IXMLDOMNode

The XML DOM node.

varViewContext
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

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.

Applies to