Edit

Share via


IPMath.Min(IXMLDOMNodeList) Method

Definition

Gets the smallest value of all of the numerical elements in a node set.

public:
 System::Object ^ Min(Microsoft::Office::Interop::InfoPath::SemiTrust::IXMLDOMNodeList ^ pxmllistInput);
public object Min (Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNodeList pxmllistInput);
abstract member Min : Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNodeList -> obj
Public Function Min (pxmllistInput As IXMLDOMNodeList) As Object

Parameters

pxmllistInput
IXMLDOMNodeList

The node set to search for the smallest value.

Returns

An object that represents the smallest value of all the numerical elements in a node set.

Examples

In the following example, the variable minAge is set to the smallest age value in my:ages, and is returned in a repeating section or table with a field named "ages." An alert is also shown with the smallest age value.

IXMLDOMNodeList ages = thisXDocument.DOM.selectNodes("//my:ages");
object minAge = thisXDocument.Util.Math.<span class="label">Min</span>(ages);
thisXDocument.UI.Alert(minAge.ToString());

Remarks

Important: This member can be accessed without restrictions.

Applies to