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 |
|---|---|---|
|
|
Object | undefined |
If provided, |
Returns:
Returns this component.
Type: this
Throws:
- Error: When
component is not a UI component or is this component.