PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
The Property SelectionLength allows you to know and modify the length of the selection made in an 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 TT_MyDoc.LengthSelection <> 0 THEN
f is docFragment(TT_MyDoc, TT_MyDoc.Cursor, TT_MyDoc.LengthSelection)
f.Style.PoliceGras = 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