Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetOwnedByType - method of object PmObject

Description:
Returns the array of references to the subobjects of the defined type in the objects tree.
Syntax:
GetOwnedByType(sClass As Variant, nMode As Long) As Array
Calling:
arr = oObject.GetOwnedByType(sClass, 0)
Parameters:
sClass(Variant) Text name of the object type. For example, "PmPanel" or the text got by the ClassName property.
nMode(Long) Range of the required subobjects
0 - subobjects only on the first nesting level
1 - subobjects on all nesting level
Example:
Getting the array of references to all PmPanel objects in the whole tree on all levels and the iteration by this array
Dim arr, obj
arr = pMe.Pm("/").GetOwnedByType("PmPanel", 1)
For Each obj In arr
  Pm.Debug obj.PathName
Next
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice