Class GradientStop

System.Object
EasyXLS.Drawings.Formatting.GradientStop

public class GradientStop extends System.Object
This class stores the position, the color and the transparency of a stop for the gradient fill.
  • Constant Summary

    Fields
    Modifier and Type
    Field
    Description
    System.Object
    The gradient color.
    int
    The gradient stop position from where the gradient to start.
    int
    The color transparency.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GradientStop​(int position, ThemeColor color, int transparency)
    Defines an instance of the gradient stop having the specified position, color and transparency.
    GradientStop​(int position, System.Drawing.Color color, int transparency)
    Defines an instance of the gradient stop having the specified position, color and transparency.
  • Method Summary

    Methods inherited from class System.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • Position

      public int Position
      The gradient stop position from where the gradient to start.
    • Color

      public System.Object Color
      The gradient color. It can be a System.Drawing.Color or an ThemeColor.
    • Transparency

      public int Transparency
      The color transparency.
  • Constructor Details

    • GradientStop

      public GradientStop(int position, System.Drawing.Color color, int transparency)
      Defines an instance of the gradient stop having the specified position, color and transparency.
      Parameters:
      position - the gradient stop position from where the gradient to start
      color - the gradient color
      transparency - the color transparency
    • GradientStop

      public GradientStop(int position, ThemeColor color, int transparency)
      Defines an instance of the gradient stop having the specified position, color and transparency.
      Parameters:
      position - the gradient stop position from where the gradient to start
      color - the gradient color
      transparency - the color transparency