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 SelectionDirection property is used to determine and change the selection direction (left to right or right to left) in a Word Processing control.
Example
T is int = 30
FOR i = TT_MonDoc.Curseur _TO_ TT_MonDoc.Curseur + TT_MonDoc.LongueurSélection
	f is docFragment = TT_MonDoc[i ON 1]
	f.Style.PoliceTaille = T
	IF TT_MonDoc.SensSélection = 1 THEN
		T += 5
	ELSE
		T -= 5
	END
END
Syntax

Finding out the selection direction in a Word Processing control Hide the details

<Result> = <Word Processing control>.SelectionDirection
<Result>: Integer
Selection direction:
  • 1: Selection made in the direction of writing (left to right).
  • 2: The selection was made in reverse order (from right to left)..
<Word Processing control>: Control name
Name of the Word Processing control to use.

Modifying the selection direction in a Word Processing control Hide the details

<Word Processing control>.SelectionDirection = <New value>
<Word Processing control>: Control name
Name of the Word Processing control to use.
<New value>: Integer
New selection direction:
  • 1: Selection made in the direction of writing (left to right).
  • 2: The selection was made in reverse order (from right to left)..
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help