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

TdxFillOptions.GradientMode Property

Specifies gradient fill direction in Gradient mode.

#Declaration

Delphi
property GradientMode: TdxFillOptionsGradientMode read; write; default TdxFillOptionsGradientMode.Horizontal;

#Property Value

Type Default Description
TdxFillOptionsGradientMode Horizontal

The current gradient fill direction.

#Remarks

Use the GradientMode property to switch between available hatch patterns when the Mode property is set to TdxFillOptionsMode.Gradient. Color and Color2 properties define gradient beginning and end colors, respectively.

#Property Value Examples

Value Example[1]
TdxFillOptionsGradientMode.Horizontal (default) An Area Filled with a Linear Gradient from Left to Right
TdxFillOptionsGradientMode.Vertical An Area Filled with a Linear Gradient from Top to Bottom

Refer to the TdxFillOptionsGradientMode type description for the full list of available gradient directions.

#Default Value

The GradientMode property’s default value is TdxFillOptionsGradientMode.Horizontal.

Note

The HatchStyle property value is ignored if the Mode property is not set to TdxFillOptionsMode.Gradient.

Footnotes
  1. This example demonstrates different GradientMode property values under the following conditions:

See Also