center([component])

Class: ProgressBar. Method inherited from UIComponent.

Description:

Positions the component in the center of its parent component, owner Window (if Window has an owner Window), or screen (Window only).
Applies only to components that have position() property (not like menu, menu item, tray icon, etc.)

Parameters:

Name Type Description

[component]

Object | undefined

If provided, this component will be positioned in the center of the specified component.

Returns:

Returns this component.

Type: this

Throws: