PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..SelectionLength is used to find out and modify the length of the selection performed in a Word Processing control.
Tip: This property is used to display a selection in the Word Processing control. The start point of the selection corresponds to the current cursor position (that can be handled by ..Cursor).
Example
// Switches the current selection in bold
IF WP_MyDoc..SelectionLength <> 0 THEN
f is DocFragment(WP_MyDoc, WP_MyDoc..Cursor, WP_MyDoc..SelectionLength)
f..Style..FontBold = True
END
Syntax

Finding out the selection length Hide the details

<Result> = <Word Processing Control>..SelectionLength
<Result>: Integer
Number of characters found in the selection.
<Word Processing Control>: Character string (with or without quotes)
Name of Word Processing control to use.

Modifying the selection length Hide the details

<Word Processing Control>..SelectionLength = <New Length>
<Word Processing Control>: Character string (with or without quotes)
Name of Word Processing control to use.
<New Length>: Integer
Number of characters to select. If the selection length is negative or null, only the simple cursor is displayed in the control.
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment