Handle of a container object, which could be a figure,
uibuttongroup, uipanel or
uipanel.
Type: double | integer
property, value
'backgroundcolor'
Specifies the background color. Valid values are 'transparent' or
a real vector specifying RGB values in the range 0-255 or
0-1.
Type: string | vector
'createfcn'
Function that is executed when searchbox is created. If value
is a function handle, it must be a function that takes at least
two arguments, the first being the handle, searchbox. The
second argument is ignored. If value is a string, it must
represent a function handle or a function name. If value is a
cell, it must contain the function name/function handle in
the first cell element and parameters to pass to the callback function in the
additional elements.
Type: cell | functionhandle | string
'deletefcn'
Function that is executed when searchbox is deleted. If value
is a function handle, it must be a function that takes at least
two arguments, the first being the handle, searchbox. The
second argument is ignored. If value is a string, it must
represent a function handle or a function name. If value is a
cell, it must contain the function name/function handle in
the first cell element and parameters to pass to the callback function in the
additional elements.
Type: cell | functionhandle | string
'enable'
Specifies if searchbox is enabled. Valid values
are'on'(default) and 'off'.
Type: string
'fontangle'
Specifies angle of the displayed font. Valid values are
'regular'(default) and 'italic'.
Type: string
'fontname'
Specifies name of the displayed font.
Type: string
'fontsize'
Specifies size of the displayed font.
Type: scalar
'fontunits'
Determines if fontsize property is absolute or relative based on
fontsize of the parent of searchbox. Valid values
are 'pixels' (default) or 'normalized'.
Type: string
'fontweight'
Specifies weight of the displayed font. Valid values are 'normal'
(default) and 'bold'.
Type: string
'foregroundcolor'
Specifies the color of matchpattern. Valid values are 'transparent' or
a real vector specifying RGB values in the range 0-255 or 0-1.
Type: string | vector
'horizontalalignment'
Specifies the horizontal alignment of the text in matchpattern. Valid values are
left(default), right, center and justify.
Type: string
'iconposition'
Specifies the position of the search icon in searchbox. Valid values are
leading(default) or trailing.
Type: string
'matchcase'
Specifies if case is matched during a search. Valid values are
'off'(default) and 'on'.
Type: string
'matchpattern'
The pattern used for the search. Results of the search will be
contained in the read-only properties of matchpositions,
which would contain the positions of the results, specified in
matchvalues. Specifying the matchpattern
will automatically trigger a search if there is a valid searchobj.
Type: string
'parent'
Specifies the parent.
Type: scalar
'position'
Position and size of searchbox. Value is specified as a vector of
form: [left top width height]. If 'units' has a value of
'normalized', values must be between 0 to 1.
Type: vector
'searchobj'
Specifies the handle of the object which is searched.
Valid objects are of type uitable or uicontrol
of styles listbox or popupmenu.
Type: scalar
'syntax'
Syntax of the search. Valid values are 'wildcard' (default), , a
simple pattern matching syntax used by command shells or 'regexp',
which uses the oml regexp command.
Type: string
'tag'
User-defined string to tag searchbox.
Type: string
'tooltipstring'
Tooltip to display.
Type: string
'units'
Specifies units of measurement. Valid values are
'pixels'(default) and 'normalized'. Value
'pixel' indicates that searchbox has a fixed size and
position specified by 'position'. Value 'normalized'
indicates that searchbox will be resized if parent
is resized.
Type: string
'userdata'
User-defined numerical data.
Type: complex | mtx | scalar
'value'
User-defined value.
Type: scalar
'verticalalignment'
Specifies the vertical alignment of the matchpattern
displayed. Valid values are top, bottom
and middle (default).
Type: string
'visible'
Specifies if searchbox is visible. Valid values are
'on'(default) and 'off'.
Type: string
Outputs
searchbox
Handle of the uisearchbox.
Examples
Create a search box for a popupmenu with a case sensitive search: