|
|
|
|
|
SelectionLength (Property) In french: LongueurSélection
The SelectionLength property gets and sets 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).
IF TT_MonDoc.LongueurSélection <> 0 THEN
f is docFragment(TT_MonDoc, TT_MonDoc.Curseur, TT_MonDoc.LongueurSélection)
f.Style.PoliceGras = 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|