getPropertyGroups
Class: matlab.mixin.CustomDisplay
Namespace: matlab.mixin
Construct array of customized property groups
Syntax
groups = getPropertyGroups(obj)
Description
returns a 1-by-N array of groups
= getPropertyGroups(obj
)matlab.mixin.util.PropertyGroup
objects, where N is the number
of groups. MATLAB® displays property groups separated by blank spaces. Each default display state
handler method calls this method once. Override this method to construct one or more
customized groups of properties to display.
The default implementation returns the properties in one group. These properties must have
public GetAccess
and must not be defined as Hidden
. If
the object is scalar, MATLAB includes dynamic properties.
Each group object array has these fields:
Title
— Text used as the header for the property group or an empty string if no title is used.PropertyList
— The property list can be either:A 1-by-1
struct
of property names and corresponding valuesA cell array of property names
Use the struct
if the object is scalar and you want to assign custom
property values. Otherwise, use a cell array of property names. If the object is scalar,
MATLAB adds the property values retrieved from the object.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2013b