Click or drag to resize

Background Class

Represents a background in a document. Implements interfaces for serialization and shape attribute sourcing.
Inheritance Hierarchy
System Object
Spire.Doc OwnerHolder
Spire.Doc.Documents.XML DocumentSerializable
Spire.Doc Background

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class Background : DocumentSerializable, IShapeAttrSource

The Background type exposes the following members.

Properties
Name Description
Public property Color
Gets or sets background color.
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property Gradient
Gets or sets background gradient.
Public property Picture
Gets or sets background picture.
Public property Type
Gets or Sets the type of background for document.
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Protected method CloneImpl (Inherited from DocumentSerializable .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Public method FetchInheritedShapeAttr
Fetches the inherited shape attribute for the specified key.
Public method FetchShapeAttr
Fetches the attribute of a shape based on the given key.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetDirectShapeAttr
Retrieves the value of a direct shape attribute using the specified key.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method HasKey
Checks if the collection contains an element with the specified key.
Protected method InitXDLSHolder (Overrides DocumentSerializable InitXDLSHolder .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ReadXmlAttributes (Overrides DocumentSerializable ReadXmlAttributes(IXDLSAttributeReader) .)
Protected method ReadXmlContent (Overrides DocumentSerializable ReadXmlContent(IXDLSContentReader) .)
Public method RemoveShapeAttr
Removes a shape attribute by key.
Protected method RestoreReference (Inherited from DocumentSerializable .)
Public method SetPicture(Stream)
Sets the picture.
Public method SetPicture(String)
Sets the picture.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Protected method WriteXmlAttributes (Overrides DocumentSerializable WriteXmlAttributes(IXDLSAttributeWriter) .)
Protected method WriteXmlContent (Overrides DocumentSerializable WriteXmlContent(IXDLSContentWriter) .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also