Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.DrawingSpace Namespace / GradientSection Class / AlphaBlend Property

In This Topic
    AlphaBlend Property
    In This Topic
    Gets or sets the amount of alpha-blending of the gradient.
    Public Overridable Property AlphaBlend As Integer
    Dim instance As GradientSection
    Dim value As Integer
    instance.AlphaBlend = value
    value = instance.AlphaBlend
    public virtual int AlphaBlend {get; set;}

    Property Value

    Integer number of alpha-blending
    This example sets the gradient for the shape on the sheet.
    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;
    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
    See Also