Skip to main content

TdxFillOptions.GradientMode Property

Specifies gradient fill direction in Gradient mode.

Declaration

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.

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