IPMath.Min(IXMLDOMNodeList) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the smallest value of all of the numerical elements in a node set.
public:
System::Object ^ Min(Microsoft::Office::Interop::InfoPath::Xml::IXMLDOMNodeList ^ pxmllistInput);
public object Min (Microsoft.Office.Interop.InfoPath.Xml.IXMLDOMNodeList pxmllistInput);
abstract member Min : Microsoft.Office.Interop.InfoPath.Xml.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());