PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Selection in a Word Processing control
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 the characteristics of the selection (or cursor):
  • in the Word Processing control.
    Note: This selection is located in the section currently edited in the control (body, header or footer).
  • Versions 23 and later
    in the Spreadsheet control.
    New in version 23
    in the Spreadsheet control.
    in the Spreadsheet control.
Example
// Get the fragment selected by the user
MySelection is docFragment = WP_Doc..Selection..Fragment
// The user selection is displayed in bold
MySelection..Formatting..FontBold = True
// Get the first text section selected by the user
MySelection1 is docSection = WP_Doc..Selection..Section[1]
Syntax

Retrieving the properties of the selection in a Word Processing control Hide the details

<Result> = <Control name>..Selection..<Property>
<Result>: Type corresponding to the property used
Expected result (see "Remarks").
<Control name>: Character string (with or without quotes)
Name of Word Processing control.
<Property>:
Property to use on the selection (see Remarks).
Versions 23 and later

Retrieving the properties of the selection in a Spreadsheet control Hide the details

<Result> = <Control name>..Selection
<Result>: psheetSelection variable
psheetSelection variable describing the selection.
<Control name>: Character string (with or without quotes)
Name of Spreadsheet control.
New in version 23

Retrieving the properties of the selection in a Spreadsheet control Hide the details

<Result> = <Control name>..Selection
<Result>: psheetSelection variable
psheetSelection variable describing the selection.
<Control name>: Character string (with or without quotes)
Name of Spreadsheet control.

Retrieving the properties of the selection in a Spreadsheet control Hide the details

<Result> = <Control name>..Selection
<Result>: psheetSelection variable
psheetSelection variable describing the selection.
<Control name>: Character string (with or without quotes)
Name of Spreadsheet control.
Remarks

Selection in a Word Processing control

PropertyExplanations
Fragment<Result> corresponds to a docFragment variable containing the characteristics of selected fragment.
Example: <Result> = <Word Processing Control>..Selection..Fragment
Section[X]Used to get the section associated with the selection.
  • X corresponds to the number of section to get.
  • <Result> corresponds to a docSection variable containing the characteristics of the section associated with the selection.
Example: <Result> = <Word Processing Control>..Selection..Section[1]
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment