Click or drag to resize

RichEdit.GetWordBreak Method (Typed)

X#
Locate a particular type of word break in the rich edit.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD GetWordBreak(
	nCharPos AS LONG,
	kWordBreakType AS LONG
) AS LONG
Request Example View Source

Parameters

nCharPos
Type: Long
The character position from which to find the work break.
kWordBreakType
Type: Long
One of the following constants representing the type of word break to retrieve:

Return Value

Type: Long
If kWordBreakType is REGWB_ISDELIMITER this function returns a logical value that is TRUE if the specified character is a delimiter and FALSE otherwise. If kWordBreakType is any other value, the function returns a numeric value representing the character position of the word break.
Remarks
ConstantDescription
REGWB_ISDELIMITERDetermines whether the specified character is a delimiter. This option causes a logical return value.
REGWB_LEFTFinds the nearest character before the specified position that begins a word.
REGWB_LEFTBREAKFinds the next word end before the specified position.
REGWB_MOVEWORDLEFTFinds the next character that begins a word before the specified position.
REGWB_RIGHTFinds the nearest character after the specified position that begins a word.
REGWB_RIGHTBREAKFinds the next word end after the specified position.
REGWB_MOVEWORDRIGHTFinds the next character that begins a word after the specified position.
See Also