TX Text Control .NET Server

GetItem Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Returns a particular XML element from the collection.

Syntax

GetItem()

Returns the item with the current input position.

public XmlElement GetItem();

GetItem(int)

Returns the item with the specified index.

public XmlElement GetItem(int index);
ParameterDescription
index

The one based index of the XmlElement.

Return Value

The return value is the requested element or null, if the element does not exist.

Examples

The following example retrieves item from the xml element collection.

XmlElement result = xmlElementCollection.GetItem(1);
result?.Select();