|
|
|
|
- Selection in a Word Processing control
Selection (Property) In french: Selection
The Selection property is used to get the characteristics of the selection (or cursor): in a Word Processing control. Remark: This selection is in the section being edited in the control (body, header or footer). in a Spreadsheet control. in an HTML Editor control - in a Diagram Editor control.
// Retrieve the selected elements in a Diagram Editor control MySelection is diagSélection <- DIAGEDT_MyDiagram.Selection IF MySelection.Shape.Count > 0 THEN // Get the shapes FOR EACH stShape OF MySelection.Shape STC_SELECTION_INFO = stShape.Name + "has been selected." + " [ " + stShape.X + ", " + stShape.Y + " - " + stShape.Width + "x" + stShape.Height + " ]" END ELSE STC_SELECTION_INFO = "Click a shape in the diagram to get the selection" END
Syntax
Retrieving the properties of the selection in a Diagram Editor control Hide the details
<Result> = <Diagram Editor control>.Selection
<Result>: diagSelection variable diagSelection variable describing the selection. <Diagram Editor control>: Control name Name of the Diagram Editor control.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|