Compartir a través de


ShapeElement.IterateShapes(IShapeIterator) Method

Definition

A method to help iterator through a shape and all its child shapes. The method will recursively go through all the child shapes of this shape and call the given iterator with each shape encountered. Note: The base implementation is that the traversal is depth-first, and NestedChildShapes are iterated before RelativeChildShapes.

public:
 virtual void IterateShapes(Microsoft::VisualStudio::Modeling::Diagrams::IShapeIterator ^ iterator);
public virtual void IterateShapes (Microsoft.VisualStudio.Modeling.Diagrams.IShapeIterator iterator);
abstract member IterateShapes : Microsoft.VisualStudio.Modeling.Diagrams.IShapeIterator -> unit
override this.IterateShapes : Microsoft.VisualStudio.Modeling.Diagrams.IShapeIterator -> unit
Public Overridable Sub IterateShapes (iterator As IShapeIterator)

Parameters

iterator
IShapeIterator

A shape iterator that will be called with each iterated shapes.

Applies to