New to Telerik UI for WPFStart a free 30-day trial

Class responsible for separating text into words.

Definition

Namespace:Telerik.Windows.Documents.Utils

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public static class LayoutTokenizer

Inheritance: objectLayoutTokenizer

Methods

Gets the words from text.

C#
public static IEnumerable<LayoutTokenizer.LayoutWord> GetLayoutWordsFromText(string text, bool? isPreviousRtl, bool stripNumbers = true)
Parameters:textstring

The text.

isPreviousRtlbool?

Determines whether the content is in right-to-left mode.

stripNumbersbool

if set to true, the numbers are stripped from the text.

Returns:

IEnumerable<LayoutTokenizer.LayoutWord>

Collection ofLayoutTokenizer.LayoutWord objects representing the words inside the text.