vcl-cxcustomcanvas-42c7f710.md
Enumerates available linear gradient fill directions.
TdxFillOptionsGradientMode = (
Horizontal,
Vertical,
ForwardDiagonal,
BackwardDiagonal
);
| Name | Description | Example |
|---|---|---|
Horizontal |
The diagonal gradient fill’s direction transitions from the left (Color) to the right (Color2) area border.
|
|
| Vertical |
The diagonal gradient fill’s direction transitions from the top (Color) to the bottom (Color2) area border.
|
|
| ForwardDiagonal |
The diagonal gradient fill’s direction transitions from the top-left (Color) to the bottom-right (Color2) corner.
|
|
| BackwardDiagonal |
The diagonal gradient fill’s direction transitions from the top-right (Color) to the bottom-left (Color2) corner.
|
|
The TdxFillOptions.GradientMode property references the TdxFillOptionsGradientMode type.
Note
TdxFillOptionsGradientMode is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxFillOptionsGradientMode.ForwardDiagonal (in Delphi) or TdxFillOptionsGradientMode::ForwardDiagonal (in C++Builder) to refer to the ForwardDiagonal value in code.
See Also