CommonWrapper module

class CommonWrapper.CommonWrapper

Bases: SpireObject, IOptimizedUpdate, ICloneParent

Represents a common wrapper for Excel objects.

This class extends SpireObject and implements IOptimizedUpdate and ICloneParent interfaces, providing basic functionality for Excel objects, including batch update operations and cloning capabilities. It serves as a base class for more specialized wrapper classes.

BeginUpdate()

Begins a batch update operation.

This method marks the beginning of a series of changes to the object properties. Changes made between BeginUpdate and EndUpdate are applied together for better performance.

Clone(parent: SpireObject) SpireObject

Creates a copy of the current object with the specified parent.

This method creates a new object with the same properties as the current object, but with a different parent object.

Parameters:

parent (SpireObject) – The parent object for the cloned object.

Returns:

A new object that is a copy of the current object.

Return type:

SpireObject

EndUpdate()

Ends a batch update operation.

This method completes the batch update started with BeginUpdate and applies all pending changes to the object properties.