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
..SelectionDirection is used to find out and modify the selection direction (left to right or right to left) in a Word Processing control.
Example
T is int = 30
FOR i = WP_MyDoc..Cursor _TO_ WP_MyDoc..Cursor + WP_MyDoc..SelectionLength
f is DocFragment = WP_MyDoc[i ON 1]
f..Style..FontSize = T
IF WP_MyDoc..SelectionDirection = 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: The selection was performed according to the writing direction (left to right).
  • 2: The selection was performed in reverse order of writing direction (right to left).
<Word Processing Control>: Character string (with or without quotes)
Name of 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>: Character string (with or without quotes)
Name of Word Processing control to use.
<New value>: Integer
New selection direction:
  • 1: The selection was performed according to the writing direction (left to right).
  • 2: The selection was performed in reverse order of writing direction (right to left).
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment