OverrideTheme

OverrideTheme class

Represents a overriding theme.

clear

NameDescription
clear()Set ColorScheme, FontScheme, FormatScheme to null to disable any overriding with this theme object.

getColorScheme

NameDescription
getColorScheme()Returns the color scheme. Read-only IColorScheme.

Returns: ColorScheme


getFontScheme

NameDescription
getFontScheme()Returns the font scheme. Read-only IFontScheme.

Returns: FontScheme


getFormatScheme

NameDescription
getFormatScheme()Returns the shape format scheme. Read-only IFormatScheme.

Returns: FormatScheme


getVersion

NameDescription
getVersion()

Returns: long


initColorScheme

NameDescription
initColorScheme()Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.

Error

ErrorCondition
com.aspose.ms.System.InvalidOperationExceptionThrown if the ColorScheme is already initialized (not null).

initColorSchemeFrom

NameDescription
initColorSchemeFrom(ColorScheme)Init ColorScheme with new object for overriding ColorScheme of InheritedTheme.

Parameters:

NameTypeDescription
colorSchemeColorSchemeData to initialize from.

Error

ErrorCondition
com.aspose.ms.System.ArgumentNullExceptionThrown if the colorScheme parameter is null.

initColorSchemeFromInherited

NameDescription
initColorSchemeFromInherited()Init ColorScheme with new object for overriding ColorScheme of InheritedTheme. And initialize data of this new object with data of the ColorScheme of InheritedTheme.

Error

ErrorCondition
com.aspose.ms.System.InvalidOperationExceptionThrown if the ColorScheme is already initialized (not null).

initFontScheme

NameDescription
initFontScheme()Init FontScheme with new object for overriding FontScheme of InheritedTheme.

Error

ErrorCondition
com.aspose.ms.System.InvalidOperationExceptionThrown if the FontScheme is already initialized (not null).

initFontSchemeFrom

NameDescription
initFontSchemeFrom(FontScheme)Init FontScheme with new object for overriding FontScheme of InheritedTheme.

Parameters:

NameTypeDescription
fontSchemeFontSchemeData to initialize from.

Error

ErrorCondition
com.aspose.ms.System.ArgumentNullExceptionThrown if the fontScheme parameter is null.

initFontSchemeFromInherited

NameDescription
initFontSchemeFromInherited()Init FontScheme with new object for overriding FontScheme of InheritedTheme. And initialize data of this new object with data of the FontScheme of InheritedTheme.

Error

ErrorCondition
com.aspose.ms.System.InvalidOperationExceptionThrown if the FontScheme is already initialized (not null).

initFormatScheme

NameDescription
initFormatScheme()Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.

Error

ErrorCondition
com.aspose.ms.System.InvalidOperationExceptionThrown if the FormatScheme is already initialized (not null).

initFormatSchemeFrom

NameDescription
initFormatSchemeFrom(FormatScheme)Init FormatScheme with new object for overriding FormatScheme of InheritedTheme.

Parameters:

NameTypeDescription
formatSchemeFormatSchemeData to initialize from.

Error

ErrorCondition
com.aspose.ms.System.ArgumentNullExceptionThrown if the formatScheme parameter is null.

initFormatSchemeFromInherited

NameDescription
initFormatSchemeFromInherited()Init FormatScheme with new object for overriding FormatScheme of InheritedTheme. And initialize data of this new object with data of the FormatScheme of InheritedTheme.

Error

ErrorCondition
com.aspose.ms.System.InvalidOperationExceptionThrown if the FormatScheme is already initialized (not null).

isEmpty

NameDescription
isEmpty()True value means that ColorScheme, FontScheme, FormatScheme is null and any overriding with this theme object are disabled. Read-only boolean.

Returns: boolean