ShapeStyle Class
Defines the visual appearance of an individual shape.
Declaration
public class ShapeStyle extends PresentationObject
Remarks
The ShapeStyle class allows you to specify colors and fonts for an individual shape. These settings include fill color, outline color, font color, and effect color. You can assign explicit color values or reference theme colors by index.
Inherited Members
Inheritance
ShapeStyle()
Initializes a new instance of the ShapeStyle class.
Declaration
public ShapeStyle()
Methods
deepClone() Method
Clones the current ShapeStyle instance.
Declaration
public ShapeStyle deepClone()
Returns
| Type | Description |
|---|---|
ShapeStyle |
The cloned |
getEffectColor() Method
Returns the color for shape effects.
Declaration
public OfficeColor getEffectColor()
Returns
| Type | Description |
|---|---|
| OfficeColor | The color for effects such as shadows, glows, and reflections. |
getEffectThemeIndex() Method
Returns the one-based index of an effect style in the theme Effects collection.
Declaration
public int getEffectThemeIndex()
Returns
| Type | Description |
|---|---|
| int | A one-based index of an effect style from the ThemeFormatScheme.Effects collection that applies to shape effects. |
getFillColor() Method
Returns the fill color for the shape.
Declaration
public OfficeColor getFillColor()
Returns
| Type | Description |
|---|---|
| OfficeColor | The fill color. |
getFillThemeIndex() Method
Returns the index of the fill color in the theme format scheme’s getFills() collection that applies to the shape’s fill.
Declaration
public int getFillThemeIndex()
Returns
| Type | Description |
|---|---|
| int | A one-based index of the fill style in the collection. |
getFontColor() Method
Returns the font color for shape text.
Declaration
public OfficeColor getFontColor()
Returns
| Type | Description |
|---|---|
| OfficeColor | The font color. |
getFontStyle() Method
Returns the font scheme style for shape text.
Declaration
public FontSchemeStyle getFontStyle()
Returns
| Type | Description |
|---|---|
| FontSchemeStyle | A |
getOutlineColor() Method
Returns the outline color for the shape.
Declaration
public OfficeColor getOutlineColor()
Returns
| Type | Description |
|---|---|
| OfficeColor | The outline color. |
getOutlineThemeIndex() Method
Returns the one-based index of a line style in the theme getLineStyles() collection.
Declaration
public int getOutlineThemeIndex()
Returns
| Type | Description |
|---|---|
| int | The index of a line style in the collection. |
setEffectColor(OfficeColor value) Method
Sets the color for shape effects.
Declaration
public void setEffectColor(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | The color for effects such as shadows, glows, and reflections. |
setEffectThemeIndex(int value) Method
Sets the one-based index of an effect style in the theme Effects collection.
Declaration
public void setEffectThemeIndex(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | A one-based index of an effect style from the ThemeFormatScheme.Effects collection that applies to shape effects. |
setFillColor(OfficeColor value) Method
Sets the fill color for the shape.
Declaration
public void setFillColor(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | The fill color. |
setFillThemeIndex(int value) Method
Sets the index of the fill color in the theme format scheme’s getFills() collection that applies to the shape’s fill.
Declaration
public void setFillThemeIndex(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | A one-based index of the fill style in the collection. |
setFontColor(OfficeColor value) Method
Sets the font color for shape text.
Declaration
public void setFontColor(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | The font color. |
setFontStyle(FontSchemeStyle value) Method
Sets the font scheme style for shape text.
Declaration
public void setFontStyle(FontSchemeStyle value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | FontSchemeStyle | A |
setOutlineColor(OfficeColor value) Method
Sets the outline color for the shape.
Declaration
public void setOutlineColor(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | The outline color. |
setOutlineThemeIndex(int value) Method
Sets the one-based index of a line style in the theme getLineStyles() collection.
Declaration
public void setOutlineThemeIndex(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The index of a line style that applies to the shape outline. |