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

ValueDescription
NONENo gradient.
HORIZONTALGradient running horizontally across an object.
VERTICALGradient running vertically down an object.
DIAGONAL_UPDiagonal gradient moving from a bottom corner up to the opposite corner.
DIAGONAL_DOWNDiagonal gradient moving from a top corner down to the opposite corner.
FROM_CORNERGradient running from a corner to the other three corners.
FROM_CENTERGradient running from the center out to the corners.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of GradientStyle values.

Methods

SignatureDescription
getName(gradientStyle: int) → StringReturns JAVA_STYLE string representation of integer GradientStyle value.
toString(gradientStyle: int) → StringReturns DotNetStyle string representation of integer GradientStyle value.
fromName(gradientStyleName: String) → intReturns integer representation by GradientStyle name.
getValues() → int[]Returns array of GradientStyle values.

See Also