TX Text Control .NET for WPF

Select Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Selects the text of the XML element. The text can only be selected, if the element belongs to the document.

Syntax

public bool Select();

Return Value

The return value is true, if the text could be selected. Otherwise it is false.

Examples

The following example selects the requested part of the xml element.

if (xmlElement.Select())
{
    Console.WriteLine("Select completed successfully.");
}

Remarks

If the element consists of several sub-elements Text Control selects the text of the first sub-element.