ThemeColorScheme Class
Defines the color scheme for a presentation theme.
Declaration
public class ThemeColorScheme extends PresentationObject
Remarks
A theme color scheme consists of twelve colors defined by the Office Open XML standard:
- Two dark colors (getDark1() and getDark2() ) typically used for text and foreground elements.
- Two light colors (getLight1() and getLight2() ) typically used for backgrounds.
- Six accent colors (getAccent1() through getAccent6() ).
- Two hyperlink colors (getHyperlink() and getFollowedHyperlink() ).
These colors can be referenced throughout the presentation to ensure consistent visual styling.
Inherited Members
Inheritance
ThemeColorScheme()
Initializes a new instance of the ThemeColorScheme class.
Declaration
public ThemeColorScheme()
Methods
deepClone() Method
Clones the current ThemeColorScheme instance.
Declaration
public ThemeColorScheme deepClone()
Returns
| Type | Description |
|---|---|
ThemeColorScheme |
The cloned |
getAccent1() Method
Returns the first accent color in the theme color scheme.
Declaration
public OfficeColor getAccent1()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getAccent2() Method
Returns the second accent color in the theme color scheme.
Declaration
public OfficeColor getAccent2()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getAccent3() Method
Returns the third accent color in the theme color scheme.
Declaration
public OfficeColor getAccent3()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getAccent4() Method
Returns the fourth accent color in the theme color scheme.
Declaration
public OfficeColor getAccent4()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getAccent5() Method
Returns the fifth accent color in the theme color scheme.
Declaration
public OfficeColor getAccent5()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getAccent6() Method
Returns the sixth accent color in the theme color scheme.
Declaration
public OfficeColor getAccent6()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getDark1() Method
Returns the first dark color in the theme color scheme.
Declaration
public OfficeColor getDark1()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for text or foreground elements.
getDark2() Method
Returns the second dark color in the theme color scheme.
Declaration
public OfficeColor getDark2()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for secondary text or foreground elements.
getFollowedHyperlink() Method
Returns the color for visited (followed) hyperlinks in the theme color scheme.
Declaration
public OfficeColor getFollowedHyperlink()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getHyperlink() Method
Returns the color for hyperlinks in the theme color scheme.
Declaration
public OfficeColor getHyperlink()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
getLight1() Method
Returns the first light color in the theme color scheme.
Declaration
public OfficeColor getLight1()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for backgrounds.
getLight2() Method
Returns the second light color in the theme color scheme.
Declaration
public OfficeColor getLight2()
Returns
| Type | Description |
|---|---|
| OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for secondary backgrounds.
getName() Method
Returns the color scheme name.
Declaration
public String getName()
Returns
| Type | Description |
|---|---|
| String | A color scheme name. |
setAccent1(OfficeColor value) Method
Sets the first accent color in the theme color scheme.
Declaration
public void setAccent1(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setAccent2(OfficeColor value) Method
Sets the second accent color in the theme color scheme.
Declaration
public void setAccent2(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setAccent3(OfficeColor value) Method
Sets the third accent color in the theme color scheme.
Declaration
public void setAccent3(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setAccent4(OfficeColor value) Method
Sets the fourth accent color in the theme color scheme.
Declaration
public void setAccent4(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setAccent5(OfficeColor value) Method
Sets the fifth accent color in the theme color scheme.
Declaration
public void setAccent5(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setAccent6(OfficeColor value) Method
Sets the sixth accent color in the theme color scheme.
Declaration
public void setAccent6(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setDark1(OfficeColor value) Method
Sets the first dark color in the theme color scheme.
Declaration
public void setDark1(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for text or foreground elements.
setDark2(OfficeColor value) Method
Sets the second dark color in the theme color scheme.
Declaration
public void setDark2(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for secondary text or foreground elements.
setFollowedHyperlink(OfficeColor value) Method
Sets the color for visited (followed) hyperlinks in the theme color scheme.
Declaration
public void setFollowedHyperlink(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setHyperlink(OfficeColor value) Method
Sets the color for hyperlinks in the theme color scheme.
Declaration
public void setHyperlink(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
setLight1(OfficeColor value) Method
Sets the first light color in the theme color scheme.
Declaration
public void setLight1(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for backgrounds.
setLight2(OfficeColor value) Method
Sets the second light color in the theme color scheme.
Declaration
public void setLight2(OfficeColor value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OfficeColor | An OfficeColor value. |
Remarks
This color is typically used for secondary backgrounds.
setName(String value) Method
Sets the color scheme name.
Declaration
public void setName(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | A color scheme name. |