matlab.system.display.Section class
Package: matlab.system.display
Superclasses:
Property group section for System objects
Syntax
matlab.system.display.Section(N1,V1,...Nn,Vn)
matlab.system.display.Section(Obj,...)
Description
matlab.system.display.Section(N1,V1,...Nn,Vn)
creates a property group
section for displaying System object™ properties, which you define using property Name-Value pairs
(N
,V
). You use matlab.system.display.Section
to define property groups using the
getPropertyGroupsImpl
method. The available
Section properties are:
Title
— Section title. The default value is an empty character vector.TitleSource
— Source of section title. Valid values are'Property'
and'Auto'
. The default value is'Property'
, which uses the character vector from theTitle
property. If theObj
name is given, the default value isAuto
, which uses theObj
name.Description
— Section description. The default value is an empty character vector.PropertyList
— Section property list as a cell array of property names. The default value is an empty array. If theObj
name is given, the default value is all eligible display properties.Type
— Container type. For example, tab, group, panel, and collapsible panel.Row
— Specify the row in which the containers need to be placed (current/new). You can specify the row using the enum class matlab.system.display.internal.Row.AlignPrompts
— Specify a boolean value to control align prompts within the containers.
Note
Certain properties are not eligible for display either in a dialog box or in the System object summary on the command-line. Property types that cannot be displayed are: hidden, abstract, private or protected access, discrete state, and continuous state. Dependent properties do not display in a dialog box, but do display in the command-line summary.
matlab.system.display.Section(Obj,...)
creates
a property group section for the specified System object (Obj
)
and sets the following property values:
TitleSource
— Set to'Auto'
, which uses theObj
name.PropertyList
— Set to all publicly-available properties in theObj
.
You can use mfilename('class')
from
within this method to get the name of the System object. If you
set any Name-Value pairs, those property values override the default
settings.