[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomProgressBar.Position

The current position for the progress bar.

## Declaration

Source position: comctrls.pp line 1852

`public property TCustomProgressBar.Position : Integer read GetPosition write SetPosition default 0;`

## Description

Position is an Integer property which contains the current position for the progress bar. The values in Position, Min, and Max determine the completion percentage and the length for the progress bar indicator when Style is set to pbstNormal.

Position must be in the range specified by the Min and Max properties. Setting a new value for the property causes the ApplyChanges method to be called. It validates and range limits property values before they are applied to the widgetset class.

Use StepIt and Step to increment the value in Position by a fixed value.

Use StepBy to increment the value in Position by an arbitrary value.

## See also

TCustomProgressBar.Min |  | Specifies the minimum value for the Position in the progress bar.
TCustomProgressBar.Max |  | Specifies the maximum value for the Position in the progress bar.
TCustomProgressBar.Style |  | Drawing style for the progress bar.
TCustomProgressBar.StepBy |  | Applies an arbitrary increment value to the Position for the progress bar.
TCustomProgressBar.Step |  | Increment applied to the value in Position in the StepIt method.
TCustomProgressBar.StepIt |  | Increments the Position for the progress bar by the value in Step.
TCustomProgressBar.ApplyChanges |  | ApplyChanges - apply any changes that have occurred.
TProgressBarStyle |  | Represents the visual display styles used for a progress bar.