|
|
|
|
|
SelectionLength (Property) In french: LongueurSélection
The SelectionLength property is used to get and change 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). // Switches the current selection in bold IF WP_MyDoc.SelectionLength <> 0 THEN f is docFragment(WP_MyDoc, WP_MyDoc.Cursor, WP_MyDoc.SelectionLength) f.Style.FontBold = 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|