Share via


IPMath.Min method

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

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

Syntax

'Declaration
Function Min ( _
    pxmllistInput As IXMLDOMNodeList _
) As Object
'Usage
Dim instance As IPMath
Dim pxmllistInput As IXMLDOMNodeList
Dim returnValue As Object

returnValue = instance.Min(pxmllistInput)
Object Min(
    IXMLDOMNodeList pxmllistInput
)

Parameters

Return value

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

Remarks

Important

This member can be accessed without restrictions.

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.Min(ages);
thisXDocument.UI.Alert(minAge.ToString());

See also

Reference

IPMath interface

IPMath members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace