Bearbeiten

Freigeben über


MDLObject.EnumerateChildObjects Method

Definition

Runs the provided handler on each component in root's object hierarchy that matches the specified objectClass.

[Foundation.Export("enumerateChildObjectsOfClass:root:usingBlock:stopPointer:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 1, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void EnumerateChildObjects (ObjCRuntime.Class objectClass, ModelIO.MDLObject root, ModelIO.MDLObjectHandler handler, ref bool stop);
abstract member EnumerateChildObjects : ObjCRuntime.Class * ModelIO.MDLObject * ModelIO.MDLObjectHandler *  -> unit
override this.EnumerateChildObjects : ObjCRuntime.Class * ModelIO.MDLObject * ModelIO.MDLObjectHandler *  -> unit

Parameters

objectClass
Class

The class of child objects to enumerate.

root
MDLObject

The root object whose children will be enumerated.

handler
MDLObjectHandler

A handler to run on each child object.

stop
Boolean

Developers set this value to true to stop enumeration.

Attributes

Applies to