Background module

class Background.Background

Bases: DocumentSerializable

Represents the background for a document.

property Color: Color

Gets or sets the background color.

GetDirectShapeAttribute(key: int) SpireObject

Gets the direct shape attribute with the specified key.

GetInheritedShapeAttribute(key: int) SpireObject

Gets the inherited shape attribute with the specified key.

GetShapeAttribute(key: int) SpireObject

Gets the shape attribute with the specified key.

property Gradient: BackgroundGradient

Gets or sets the background gradient.

HasKey(key: int) bool

Checks if the background has the specified key.

RemoveShapeAttribute(key: int)

Removes the shape attribute with the specified key.

SetPicture

Sets the picture using the specified image file.

SetShapeAttr(key: int, value: SpireObject)

Sets the shape attribute with the specified key and value.

SetShapeAttribute(key: int, value: SpireObject)

Sets the shape attribute with the specified key and value.

property Type: BackgroundType

Gets or sets the type of background for the document.