TXTextControl.Proofing.LanguageScopeCollection.GetItem Method

Gets a particular item from the collection.

GetItem(Int32)

Gets the language scope at the specified text input position.

[C#]
public Proofing.LanguageScope GetItem(int textPosition);
[Visual Basic]
Public Function GetItem(ByVal textPosition As Integer) As Proofing.LanguageScope
Parameter Description
textPosition

Specifies a zero-based text postion.

GetItem(Int32, CultureInfo)

Gets the language scope of the specified language at the specified text input position. If the language scope's culture at that position does not equal to the specified languge, the next corresponding scope is returned. If there is no language scope of the specified language between the specified input position and the end of the text, the first language scope of the specified kind is returned.

[C#]
public Proofing.LanguageScope GetItem(int textPosition, System.Globalization.CultureInfo language);
[Visual Basic]
Public Function GetItem(ByVal textPosition As Integer, language As System.Globalization.CultureInfo) As Proofing.LanguageScope
Parameter Description
textPosition

Specifies a zero-based text postion.

language

Specifies the language to search for.

Return Value

The return value is null, if a language scope could not be found. Otherwise, it is an object of the type LanguageScope.