Aspose::Cells::Drawing::IGradientStopCollection Class Referenceabstract

Represents the gradient stop collection. More...

Inherits CollectionBase.

Public Member Functions

virtual void Add (Aspose::Cells::Systems::Double position, intrusive_ptr< Aspose::Cells::ICellsColor > color, Aspose::Cells::Systems::Int32 alpha)=0
 Add a gradient stop. More...
 
virtual void Add (Aspose::Cells::Systems::Double position, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color, Aspose::Cells::Systems::Int32 alpha)=0
 Add a gradient stop. More...
 
virtual intrusive_ptr< Aspose::Cells::Drawing::IGradientStopGetObjectByIndex (Aspose::Cells::Systems::Int32 index)=0
 Gets the gradient stop by the index. More...
 
virtual void SetObjectByIndex (Aspose::Cells::Systems::Int32 index, intrusive_ptr< Aspose::Cells::Drawing::IGradientStop > value)=0
 Gets the gradient stop by the index. More...
 

Detailed Description

Represents the gradient stop collection.

Member Function Documentation

◆ Add() [1/2]

virtual void Aspose::Cells::Drawing::IGradientStopCollection::Add ( Aspose::Cells::Systems::Double  position,
intrusive_ptr< Aspose::Cells::ICellsColor color,
Aspose::Cells::Systems::Int32  alpha 
)
pure virtual

Add a gradient stop.

Parameters
positionThe position of the stop,in unit of percentage.
colorThe color of the stop.
alphaThe alpha of the color.

◆ Add() [2/2]

virtual void Aspose::Cells::Drawing::IGradientStopCollection::Add ( Aspose::Cells::Systems::Double  position,
intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  color,
Aspose::Cells::Systems::Int32  alpha 
)
pure virtual

Add a gradient stop.

Parameters
positionThe position of the stop,in unit of percentage.
colorThe color of the stop.
alphaThe alpha of the color.

◆ GetObjectByIndex()

virtual intrusive_ptr<Aspose::Cells::Drawing::IGradientStop> Aspose::Cells::Drawing::IGradientStopCollection::GetObjectByIndex ( Aspose::Cells::Systems::Int32  index)
pure virtual

Gets the gradient stop by the index.

Parameters
indexThe index.
Returns
The gradient stop.

◆ SetObjectByIndex()

virtual void Aspose::Cells::Drawing::IGradientStopCollection::SetObjectByIndex ( Aspose::Cells::Systems::Int32  index,
intrusive_ptr< Aspose::Cells::Drawing::IGradientStop value 
)
pure virtual

Gets the gradient stop by the index.

Parameters
indexThe index.
Returns
The gradient stop.