ImageGear .NET v24.12 - Updated
LookUp(String) Method
Example 




ImageGear24.Core Assembly > ImageGear.Core Namespace > ImGearMetadataNodeList Class > LookUp Method : LookUp(String) Method
Tag Name for which to search.
Searches the node list for a node whose Name is equal to the specified string value.
Syntax
'Declaration
 
Public Overloads Function LookUp( _
   ByVal name As String _
) As ImGearMetadataNode
'Usage
 
Dim instance As ImGearMetadataNodeList
Dim name As String
Dim value As ImGearMetadataNode
 
value = instance.LookUp(name)
public ImGearMetadataNode LookUp( 
   string name
)
public: ImGearMetadataNode* LookUp( 
   string* name
) 
public:
ImGearMetadataNode^ LookUp( 
   String^ name
) 

Parameters

name
Tag Name for which to search.

Return Value

ImGearMetadataNode class object.
Remarks
If the list contains several nodes with this Name, method returns the first record. If a node is not present, the method returns null.

The method does not search in the subtrees of the node list.

Example
ImGearMetadataTree rootTree = (ImGearMetadataTree)page.Metadata.Child;
ImGearMetadataNode node = rootTree.Children.LookUp("ImageWidth");
Dim rootTree As ImGearMetadataTree = igPage.Metadata.Child
Dim node As ImGearMetadataNode = rootTree.Children.LookUp("ImageWidth")
See Also

Reference

ImGearMetadataNodeList Class
ImGearMetadataNodeList Members
Overload List
ImGearMetadataNode Class