Class: QgsStyleColorRampEntity¶
A color ramp entity for QgsStyle databases.
Added in version 3.10.
Class Hierarchy¶
Base classes¶
An interface for entities which can be placed in a   | 
Methods
Returns the entity's color ramp.  | 
- class qgis.core.QgsStyleColorRampEntity[source]¶
 Bases:
QgsStyleEntityInterface- __init__(ramp: QgsColorRamp | None)
 Constructor for QgsStyleColorRampEntity, with the specified color
ramp.Ownership of
rampis NOT transferred.- Parameters:
 ramp (Optional[QgsColorRamp])
- __init__(a0: QgsStyleColorRampEntity)
 - Parameters:
 
- ramp(self) QgsColorRamp | None[source]¶
 Returns the entity’s color ramp.
- Return type:
 Optional[QgsColorRamp]