Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxGPBrushGradientPoints.Offsets Property

An array containing the offset values of the key points on the gradient line.

#Declaration

Delphi
property Offsets[Index: Integer]: Single read; write;

#Property Value

Type
Single

#Remarks

The values stored by the Offsets property correspond to the same-indexed values stored within the Colors property. The Index parameter specifies the gradient point’s zero-based index in the array.

An individual offset value determines the relative position of the key point on the gradient line connecting the opposite boundaries or corners of an area painted by the brush. An offset value ranges from 0 to 1 (which corresponds to the key gradient point’s position between the beginning and the end of the gradient line):

The actual direction of the gradient line is determined by the value of the GradientMode property implemented in the TdxGPBrush class.

Use the Offsets property to identify and/or change the position of an existing gradient point on the gradient line.

See Also