Gets or sets the gradient style that is used to fill the shape.
Assembly: Microsoft.VisualBasic.PowerPacks (in Microsoft.VisualBasic.PowerPacks.dll)
When the None, this property has no effect.is set to
The following example shows how to use the FillGradientStyle property to change the appearance of a shape. This example requires that you have an OvalShape control named OvalShape1 on a form.
Private Sub OvalShape1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles OvalShape1.Click ' Set the fill style. OvalShape1.FillStyle = FillStyle.Solid ' Set the fill color. OvalShape1.FillColor = Color.Red ' Set the gradient style. OvalShape1.FillGradientStyle = FillGradientStyle.Central ' Set the gradient color. OvalShape1.FillGradientColor = Color.Purple End Sub
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.