Class ShadowFormat


  • public class ShadowFormat
    extends System.Object
    This class stores the shadow options for images, shapes and other drawing objects. It allows to set a predefined shadow or to create a new one. There are 4 types of base shadows: none, outer, inner or perspective shadow.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowFormat()
      Defines an instance of the shadow formatting.
    • Method Summary

      Modifier and Type Method Description
      ShadowFormat Clone()
      Creates and returns a copy of this object.
      System.String getAlignment()
      Returns the alignment of the shadow.
      float getAngle()
      Returns the angle of the shadow.
      float getBlur()
      Returns the blur of the shadow.
      System.Drawing.Color getColor()
      Returns the shadow color
      float getDistance()
      Returns the distance of the shadow.
      int getShadowType()
      Returns the shadow type of the shape.
      float getSize()
      Returns the size of the shadow.
      ThemeColor getThemeColor()
      Returns the shadow color
      int getTransparency()
      Returns the transparency of the shadow.
      bool HasShadow()
      Returns true if the shape has shadow, false otherwise.
      bool IsLowerPerspective()
      Returns true if it is a perspective shadow displayed in front of the shape, false otherwise.
      void setAngle​(float angle)
      Sets the angle of the shadow.
      void setBlur​(float blur)
      Sets the blur of the shadow.
      void setColor​(ThemeColor themeColor)
      Sets the shadow color.
      void setColor​(System.Drawing.Color color)
      Sets the shadow color.
      void setDistance​(float distance)
      Sets the distance of the shadow.
      void setInnerShadow​(int transparency, float blur, float angle, float distance)
      Sets the inner shadow option of the shape.
      void setNoShadow​(bool hasShadow)
      Sets the no shadow option of the shape.
      void setOuterShadow​(int transparency, float size, float blur, float angle, float distance, System.String alignment)
      Sets the outer shadow option of the shape.
      void setPerspectiveShadow​(int transparency, float size, float blur, float angle, float distance, System.String alignment, bool isLower)
      Sets the perspective shadow option of the shape.
      void setShadow​(int presetShadows)
      Sets the shadow of the shape.
      void setSize​(float size)
      Sets the size of the shadow.
      void setTransparency​(int transparency)
      Sets the transparency of the shadow.