ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The SelectionLength property is used to get and change the length of the selection made in a Word Processing control.
Tip: This property is used to display a selection in the Word Processing control. The starting point of the selection corresponds to the current cursor position (that can be handled with the Cursor property).
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>: Control name
Name of the Word Processing control to use.

Modifying the selection length Hide the details

<Word Processing control>.SelectionLength = <New Length>
<Word Processing control>: Control name
Name of the 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 version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help