GradientStyle
Overview
GradientStyle is an enum in Aspose.Words FOSS for Java.
Specifies the style for a gradient fill.
Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.
This enum declares 4 methods for GradientStyle objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
NONE | No gradient. |
HORIZONTAL | Gradient running horizontally across an object. |
VERTICAL | Gradient running vertically down an object. |
DIAGONAL_UP | Diagonal gradient moving from a bottom corner up to the opposite corner. |
DIAGONAL_DOWN | Diagonal gradient moving from a top corner down to the opposite corner. |
FROM_CORNER | Gradient running from a corner to the other three corners. |
FROM_CENTER | Gradient running from the center out to the corners. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of GradientStyle values. |
Methods
| Signature | Description |
|---|---|
getName(gradientStyle: int) → String | Returns JAVA_STYLE string representation of integer GradientStyle value. |
toString(gradientStyle: int) → String | Returns DotNetStyle string representation of integer GradientStyle value. |
fromName(gradientStyleName: String) → int | Returns integer representation by GradientStyle name. |
getValues() → int[] | Returns array of GradientStyle values. |