public int getType() / public void setType(int value)
Gets and sets the fill type.
The value of the property is FillType integer constant.
NOTE: This member is now obsolete. Instead,
please use FillFormat.FillType property instead.
This property will be removed 12 months later since July 2016.
Aspose apologizes for any inconvenience you may have experienced.
public int getSetType() / public void setSetType(int value)
Gets the fill format set type.
The value of the property is FormatSetType integer constant.
NOTE: This member is now obsolete. Instead,
please use FillFormat.FillType property instead.
This property will be removed 12 months later since July 2016.
Aspose apologizes for any inconvenience you may have experienced.
Returns the gradient variant for the specified fill.
Only applies for Excel 2007.
Can only be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.
public byte[] getImageData() / public void setImageData(byte[] value)
Gets and sets the picture image data.
If the fill format is not custom texture format, returns null.
Method Detail
hashCode
public int hashCode()
Gets the hash code.
Returns:
Example:
int hashCode = lineFmt.hashCode();
equals
public boolean equals(java.lang.Object obj)
Determines whether this instance has the same value as another specified LineFormat object.
Parameters:
obj - The LineFormat object to compare with this instance.
Returns:
true if the value of the obj parameter is the same as the value of this instance; otherwise, false. If obj is null, this method returns false.
Example:
//You have to make sure that the index value in this line of code exists
LineFormat obj = workbook.getWorksheets().get(0).getShapes().get(0).getLine();
if (lineFmt.equals(obj))
{
//do what you want
}
variant - The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.
variant - The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.
public void setTwoColorGradient(com.aspose.cells.Color color1, double transparency1, com.aspose.cells.Color color2, double transparency2, int style, int variant)
Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
Parameters:
color1 - One gradient color.
transparency1 - The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear).
color2 - Two gradient color.
transparency2 - The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear).
variant - The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.
variant - The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.