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
..Selection is used to find out and modify the characteristics of selection (or cursor) in the Word Processing control.
Note: This selection is found in the section currently edited in the control (body, header or footer).
Example
// Retrieve the fragment selected by the user
MySelection is DocFragment = WP_Doc..Selection..Fragment
// The user selection is displayed in bold
MySelection..Formatting..FontBold = True
// Retrieve the first text section selected by the user
MySelection1 is DocSection = WP_Doc..Selection..Section[1]
Syntax

Retrieving the selected fragment Hide the details

<Result> = <Word Processing Control>..Selection..Fragment
<Result>: docFragment variable
docFragment variable containing the characteristics of selected fragment.
<Word Processing Control>: Character string (with or without quotes)
Name of Word Processing control to use.

Retrieving the section associated with the selection Hide the details

<Result> = <Word Processing Control>..Selection..Section[X]
<Result>: docSection variable
docSection variable containing the characteristics of section associated with the selection.
<Word Processing Control>: Character string (with or without quotes)
Name of Word Processing control to use.
<X>: Integer
Number of the section to retrieve.
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment