This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

matlab.mixin.util.PropertyGroup class

Package: matlab.mixin.util

Custom property list for object display

Description

Use the PropertyGroup class to create custom property display lists for class derived from matlab.mixin.CustomDisplay. You can change the order of properties displayed and specify which properties to display.

Construction

P = matlab.mixin.util.PropertyGroup(propertyList) constructs a property group object with the supplied propertyList.

P = matlab.mixin.util.PropertyGroup(propertyList,title) displays title above the list of properties.

Input Arguments

propertyList

The propertyList is either a cell array of character vector property names, a string array of property names, or a scalar struct with property name-value pairs. Empty character vectors and empty strings are valid values. Missing strings are not valid.

title

Text to display above properties, specified as a character vector or a string scalar. Empty character vectors and empty strings are valid values. Missing strings are not valid.

Properties

NumProperties

The number of properties in the PropertyList.

Attributes:

Dependenttrue
GetAccesspublic
GetObservabletrue
SetAccessprivate
Transienttrue

PropertyList

The list of properties to display, stored as a scalar struct or a cell array of char vectors.

Attributes:

GetAccesspublic
GetObservabletrue
SetAccesspublic
SetObservabletrue

Title

An optional title for the PropertyGroup.

Attributes:

GetAccesspublic
GetObservabletrue
SetAccesspublic
SetObservabletrue

Copy Semantics

Value. To learn how value classes affect copy operations, see Copying Objects.

Introduced in R2013b