Aspose::Cells::Drawing::IGradientFill Class Referenceabstract

Represents the gradient fill. More...

Inherits Aspose::Cells::Drawing::IFill.

Public Member Functions

virtual intrusive_ptr< Aspose::Cells::Drawing::IGradientStopCollectionGetIGradientStops ()=0
 Represents the gradient stop collection. More...
 
virtual void SetGradient (Aspose::Cells::Drawing::GradientFillType type, Aspose::Cells::Systems::Double angle, Aspose::Cells::Drawing::GradientDirectionType direction)=0
 Set the gradient fill type and direction. More...
 
virtual Aspose::Cells::Drawing::GradientFillType GetFillType ()=0
 Gets the gradient fill type. More...
 
virtual Aspose::Cells::Drawing::GradientDirectionType GetDirectionType ()=0
 Gets the gradient direction type. More...
 
virtual Aspose::Cells::Systems::Single GetAngle ()=0
 The angle of linear fill. More...
 
virtual void SetAngle (Aspose::Cells::Systems::Single value)=0
 The angle of linear fill. More...
 
virtual void SetOneColorGradient (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color, Aspose::Cells::Systems::Double degree, Aspose::Cells::Drawing::GradientStyleType style, Aspose::Cells::Systems::Int32 variant)=0
 Sets the specified fill to a one-color gradient. More...
 
virtual void SetTwoColorGradient (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color1, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color2, Aspose::Cells::Drawing::GradientStyleType style, Aspose::Cells::Systems::Int32 variant)=0
 Sets the specified fill to a two-color gradient. More...
 
virtual void SetTwoColorGradient (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color1, Aspose::Cells::Systems::Double transparency1, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color2, Aspose::Cells::Systems::Double transparency2, Aspose::Cells::Drawing::GradientStyleType style, Aspose::Cells::Systems::Int32 variant)=0
 Sets the specified fill to a two-color gradient. More...
 

Detailed Description

Represents the gradient fill.

Member Function Documentation

◆ GetAngle()

virtual Aspose::Cells::Systems::Single Aspose::Cells::Drawing::IGradientFill::GetAngle ( )
pure virtual

The angle of linear fill.

◆ GetDirectionType()

virtual Aspose::Cells::Drawing::GradientDirectionType Aspose::Cells::Drawing::IGradientFill::GetDirectionType ( )
pure virtual

Gets the gradient direction type.

◆ GetFillType()

virtual Aspose::Cells::Drawing::GradientFillType Aspose::Cells::Drawing::IGradientFill::GetFillType ( )
pure virtual

Gets the gradient fill type.

◆ GetIGradientStops()

virtual intrusive_ptr<Aspose::Cells::Drawing::IGradientStopCollection> Aspose::Cells::Drawing::IGradientFill::GetIGradientStops ( )
pure virtual

Represents the gradient stop collection.

◆ SetAngle()

virtual void Aspose::Cells::Drawing::IGradientFill::SetAngle ( Aspose::Cells::Systems::Single  value)
pure virtual

The angle of linear fill.

◆ SetGradient()

virtual void Aspose::Cells::Drawing::IGradientFill::SetGradient ( Aspose::Cells::Drawing::GradientFillType  type,
Aspose::Cells::Systems::Double  angle,
Aspose::Cells::Drawing::GradientDirectionType  direction 
)
pure virtual

Set the gradient fill type and direction.

Parameters
typeGradient fill type.
angleThe angle. Only applies for GradientFillType.Linear.
directionThe direction type. Only applies for GradientFillType.Radial and GradientFillType.Rectangle.

◆ SetOneColorGradient()

virtual void Aspose::Cells::Drawing::IGradientFill::SetOneColorGradient ( intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  color,
Aspose::Cells::Systems::Double  degree,
Aspose::Cells::Drawing::GradientStyleType  style,
Aspose::Cells::Systems::Int32  variant 
)
pure virtual

Sets the specified fill to a one-color gradient.

Parameters
colorOne gradient color.
degreeThe gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).
styleGradient shading style.
variantThe gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

◆ SetTwoColorGradient() [1/2]

virtual void Aspose::Cells::Drawing::IGradientFill::SetTwoColorGradient ( intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  color1,
intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  color2,
Aspose::Cells::Drawing::GradientStyleType  style,
Aspose::Cells::Systems::Int32  variant 
)
pure virtual

Sets the specified fill to a two-color gradient.

Parameters
color1One gradient color.
color2Two gradient color.
styleGradient shading style.
variantThe gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

◆ SetTwoColorGradient() [2/2]

virtual void Aspose::Cells::Drawing::IGradientFill::SetTwoColorGradient ( intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  color1,
Aspose::Cells::Systems::Double  transparency1,
intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  color2,
Aspose::Cells::Systems::Double  transparency2,
Aspose::Cells::Drawing::GradientStyleType  style,
Aspose::Cells::Systems::Int32  variant 
)
pure virtual

Sets the specified fill to a two-color gradient.

Parameters
color1One gradient color.
transparency1The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear).
color2Two gradient color.
transparency2The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear).
styleGradient shading style.
variantThe gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.