|
|
|
|
<Diagram variable>.Search (Function) In french: <Variable Diagramme>.Recherche Searches for shapes containing a specific text in a diagram. MyDiag is Diagram <- DIAGEDT_NoName1 arrIndex is array of int arrIndex = MyDiag.Search("Example") FOR EACH i OF arrIndex Trace(MyDiag[i].Text.Caption) END Syntax
<Result> = <Diagram>.Search(<Searched text> [, <Search options>])
<Result>: Array of integers Array of integers corresponding to the indices of the shapes that contain the specified text. <Diagram>: Diagram variable Name of the Diagram variable that corresponds to the 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. 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|