ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The SelectionLength property gets and sets 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
// Passe en gras la sélection courante
IF TT_MonDoc.LongueurSélection <> 0 THEN
	f is docFragment(TT_MonDoc, TT_MonDoc.Curseur, TT_MonDoc.LongueurSélection)
	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

Last update: 09/21/2024

Send a report | Local help