FarPoint.Win.Spread
Amount Property
See Also  Example
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > GradientSection Class : Amount Property


Gets or sets the amount of the gradient.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Amount As Integer
Visual Basic (Usage)Copy Code
Dim instance As GradientSection
Dim value As Integer
 
instance.Amount = value
 
value = instance.Amount
C# 
public virtual int Amount {get; set;}

Return Value

Integer amount

Example

This example sets the gradient for the shape on the sheet.
C#Copy Code
FarPoint.Win.Spread.DrawingSpace.GradientSection grd = new FarPoint.Win.Spread.DrawingSpace.GradientSection(Color.Empty);
grd.AlphaBlend = 255;
grd.Amount = 50;
grd.Color = Color.Red;

FarPoint.Win.Spread.DrawingSpace.RectangleShape rs =
new FarPoint.Win.Spread.DrawingSpace.RectangleShape();
rs.Name =
"GradientRect";

rs.Gradient.Style = FarPoint.Win.Spread.DrawingSpace.GradientStyle.RadialFromCenter;
rs.Gradient.Sections
[0] = grd;

fpSpread1.ActiveSheet.AddShape(rs);
Visual BasicCopy Code
Dim grd As New FarPoint.Win.Spread.DrawingSpace.GradientSection(Color.Empty)
grd.AlphaBlend = 255
grd.Amount = 50
grd.Color = Color.Red

Dim rs As New FarPoint.Win.Spread.DrawingSpace.RectangleShape
rs.Name = "GradientRect"

rs.Gradient.Style = FarPoint.Win.Spread.DrawingSpace.GradientStyle.RadialFromCenter
rs.Gradient.Sections(0) = grd

FpSpread1.ActiveSheet.AddShape(rs)

See Also