removeStyle(uit) removes all styles created
with the uistyle
function from the specified table UI component. To determine which styles are on
uit and available to remove, query the value of
uit.StyleConfigurations.
removeStyle(uit,ordernum)
specifies which style to remove. Specify a style based on the order in which it was added.
The property uit.StyleConfigurations lists styles in the order that
they were added.
The StyleConfigurations property value shows that style order numbers 1 and 4 affect columns, and that the row style was the third style added to the table. Remove the styles by specifying style order numbers 1, 3, and 4.
Table component, specified as a Table object created with the
uitable function. The Table object must be
parented to a figure created with the uifigure function, or one of
its child containers.
ordernum — Style order number positive integer | vector of positive integers
Style order number, specified as a positive integer or a vector of positive
integers. To determine the styles currently applied to the table, and the order in which
they were added, query the value of the StyleConfigurations
property.
When you remove a style other than the last one that was added, the remaining styles
move up in the order to close the gaps. If no style order number is specified, all
styles are removed from the table.
Example: removeStyle(uit,2) removes the second style in the list
returned by uit.StyleConfigurations.
Example: removeStyle(uit,[1 3 5]) removes the first, third, and
fifth styles in the list returned by
uit.StyleConfigurations.
Example: removeStyle(uit) removes all styles from the table UI
component.