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) | |
TdxFillOptionsGradientMode.Vertical |
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
-
This example demonstrates different
GradientMode
property values under the following conditions:- The Color property is set to TdxAlphaColors.White.
- The Color2 property is set to TdxAlphaColors.Gray.
See Also