[]
        
(Showing Draft Content)

SolidBrush

DsPdfJS API v9.1.0


DsPdfJS API / SolidBrush

Class: SolidBrush

Represents a solid brush.

Extends

Constructors

Constructor

new SolidBrush(color): SolidBrush

Creates a solid brush with specified color.

Parameters

color

Color

The color of the brush.

Returns

SolidBrush

Overrides

Brush.constructor

Constructor

new SolidBrush(om, color): SolidBrush

Creates a solid brush with specified color.

Parameters

om

ObjectManager

An object manager that controls the lifetime of the SolidBrush object.

color

Color

The color of the brush.

Returns

SolidBrush

Overrides

Brush.constructor

Accessors

color

Get Signature

get color(): Color

Gets the color of the brush.

Returns

Color


id

Get Signature

get id(): number

Gets the reference to the object.

Returns

number

Inherited from

Brush.id


om

Get Signature

get om(): ObjectManager

Gets the owner ObjectManager instance.

Returns

ObjectManager

Inherited from

Brush.om


type

Get Signature

get type(): BrushType

Gets the type of the brush.

Returns

BrushType

Overrides

Brush.type

Methods

free()

free(): void

Detaches the object from the ObjectManager and deallocates its memory, if possible.

Returns

void

Inherited from

Brush.free


rebind()

rebind(omTo): void

Rebinds the object from the current ObjectManager to the specified one.

Parameters

omTo

ObjectManager

The new ObjectManager for the object.

Returns

void

Inherited from

Brush.rebind