Documentation

findprop (handle)

Find meta.property object associated with property name

Syntax

p = findprop(h,'Name')

Description

p = findprop(h,'Name') returns the meta.property object associated with the property Name of the object h. Name can be a property defined by the class of h or a dynamic property defined only for the object h.

Examples

Use findprop to view property attribute settings:

findprop(containers.Map,'Count')

ans = 

 property with properties:

                Name: 'Count'
         Description: 'Number of pairs in the collection'
 DetailedDescription: ''
           GetAccess: 'public'
           SetAccess: 'private'
           Dependent: 1
            Constant: 0
            Abstract: 0
           Transient: 1
              Hidden: 0
       GetObservable: 0
       SetObservable: 0
            AbortSet: 0
           GetMethod: []
           SetMethod: []
       DefiningClass: [1x1 meta.class]
Was this topic helpful?