Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

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 = 

  meta.property handle
  Package: meta

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

  Methods, Events, Superclasses

See Also

Obtaining Information About Classes with Meta-Classes

Getting Information About Properties

Dynamic Properties — Adding Properties to an Instance

handle, findobj (handle), meta.property

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS