|
|
|
|
|
DiagramSearch (Function) In french: DiagrammeRecherche Searches for shapes containing a specific text in a diagram. Mondiag is Diagram <- EDIAG_SansNom1
tabIndice is array of int
tabIndice = DiagramSearch(EDIAG_SansNom1, "Exemple")
FOR EACH i OF tabIndice
Trace(Mondiag[i].Text.Caption)
END
Syntax
<Result> = DiagramSearch(<Diagram> , <Searched text> [, <Search options>])
<Result>: Array of integers Array of integers corresponding to the indexes 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 (enclosed in punctuation characters or spaces) |
By default, no option is selected: the search is case sensitive and is performed on incomplete words.. Remarks - 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.
- The text is searched only on the "Text.caption" property of the Diagram variable.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|