ShapeStyle

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.IShapeStyle

public class ShapeStyle extends DomObject<Shape> implements IShapeStyle

Represent shape’s style reference.

Methods

MethodDescription
getLineColor()Returns a shape’s outline color.
getLineStyleIndex()Returns or sets line’s column index in a style matrix.
setLineStyleIndex(int value)Returns or sets line’s column index in a style matrix.
getFillColor()Returns a shape’s fill color.
getFillStyleIndex()Returns or sets shape’s fill column index in style matrices.
setFillStyleIndex(short value)Returns or sets shape’s fill column index in style matrices.
getEffectColor()Returns a shape’s effect color.
getEffectStyleIndex()Returns or sets shape’s effect column index in a style matrix.
setEffectStyleIndex(long value)Returns or sets shape’s effect column index in a style matrix.
getFontColor()Returns a shape’s font color.
getFontCollectionIndex()Returns or sets shape’s font index in a font collection.
setFontCollectionIndex(byte value)Returns or sets shape’s font index in a font collection.

getLineColor()

public final IColorFormat getLineColor()

Returns a shape’s outline color. Read-only IColorFormat.

Returns: IColorFormat

getLineStyleIndex()

public final int getLineStyleIndex()

Returns or sets line’s column index in a style matrix. Read/write int.

Returns: int

setLineStyleIndex(int value)

public final void setLineStyleIndex(int value)

Returns or sets line’s column index in a style matrix. Read/write int.

Parameters:

ParameterTypeDescription
valueint

getFillColor()

public final IColorFormat getFillColor()

Returns a shape’s fill color. Read-only IColorFormat.

Returns: IColorFormat

getFillStyleIndex()

public final short getFillStyleIndex()

Returns or sets shape’s fill column index in style matrices. 0 means no fill, positive value - index in theme’s fill styles, negative value - index in theme’s background styles. Read/write short.

Returns: short

setFillStyleIndex(short value)

public final void setFillStyleIndex(short value)

Returns or sets shape’s fill column index in style matrices. 0 means no fill, positive value - index in theme’s fill styles, negative value - index in theme’s background styles. Read/write short.

Parameters:

ParameterTypeDescription
valueshort

getEffectColor()

public final IColorFormat getEffectColor()

Returns a shape’s effect color. Read-only IColorFormat.

Returns: IColorFormat

getEffectStyleIndex()

public final long getEffectStyleIndex()

Returns or sets shape’s effect column index in a style matrix. Read/write long.

Returns: long

setEffectStyleIndex(long value)

public final void setEffectStyleIndex(long value)

Returns or sets shape’s effect column index in a style matrix. Read/write long.

Parameters:

ParameterTypeDescription
valuelong

getFontColor()

public final IColorFormat getFontColor()

Returns a shape’s font color. Read-only IColorFormat.

Returns: IColorFormat

getFontCollectionIndex()

public final byte getFontCollectionIndex()

Returns or sets shape’s font index in a font collection. Read/write FontCollectionIndex.

Returns: byte

setFontCollectionIndex(byte value)

public final void setFontCollectionIndex(byte value)

Returns or sets shape’s font index in a font collection. Read/write FontCollectionIndex.

Parameters:

ParameterTypeDescription
valuebyte