Searches for shapes containing a specific text in a diagram.
MyDiag is Diagram <- DIAGEDT_NoName1
arrIndex is array of int
arrIndex = DiagramSearch(DIAGEDT_NoName1, "Example")
FOR EACH i OF arrIndex
<Result> = DiagramSearch(<Diagram> , <Searched text> [, <Search options>])
<Result>: Array of integers
Array of integers corresponding to the indices of the shapes that contain the specified text.
<Diagram>: Name of the control or Diagram variable
Diagram to be used. This document corresponds to:
- the name of a Diagram Editor control.
- a variable of type Diagram.
<Searched text>: Character string
Text to find in the diagram.
<Search options>: Optional Integer constant
Indicates the search options:
|IgnoreCase||Case and accent insensitive search (ignores uppercase/lowercase differences)|
|WholeWord||Searches for a whole word (between punctuation characters or spaces)|
No option is selected by default: the search is sensitive to the case and it is performed on incomplete words.
- If a text is found several times in a shape, the index of the shape is returned only once.
- Shapes are sorted by order on the X-axis, then on the Y-axis.