Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.DrawingSpace Namespace / ShadowDirection Enumeration
Example Example


In This Topic
    ShadowDirection Enumeration
    In This Topic
    Specifies the direction of the drop shadow of the shape.
    Syntax
    'Declaration
     
    Public Enum ShadowDirection 
       Inherits System.Enum
    'Usage
     
    Dim instance As ShadowDirection
    public enum ShadowDirection : System.Enum 
    Members
    MemberDescription
    Bottom Displays a shadow on the bottom of the object only
    BottomLeft Displays a shadow on the bottom and left of the object
    BottomRight Displays a shadow on the bottom and right of the object
    Left Displays a shadow on the left of the object only
    None Displays no shadow
    Right Displays a shadow on the right of the object only
    Top Displays a shadow on the top of the object only
    TopLeft Displays a shadow on the top and left of the object
    TopRight Displays a shadow on the top and right of the object
    Example
    This example uses the ShadowDirection enumeration.
    FarPoint.Win.Spread.DrawingSpace.LightningBoltShape ls = new FarPoint.Win.Spread.DrawingSpace.LightningBoltShape();
    ls.BackColor = System.Drawing.Color.DarkTurquoise;
    fpSpread1.ActiveSheet.AddShape(ls, 10, 2);            
    fpSpread1.ActiveSheet.Cells[10, 1].Text = "Shape";
    FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape camera = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape();
    camera.Formula = "B10:D18";
    camera.ShadowColor = System.Drawing.Color.Red;
    camera.ShadowDirection = FarPoint.Win.Spread.DrawingSpace.ShadowDirection.Right;
    camera.ShapeOutlineStyle = System.Drawing.Drawing2D.DashStyle.Dot;
    camera.ShapeOutlineThickness = 2;
    camera.ShapeOutlineColor = System.Drawing.Color.Fuchsia;
    camera.Location = new System.Drawing.Point(10, 40);
    fpSpread1.ActiveSheet.AddShape(camera);
    Dim ls As New FarPoint.Win.Spread.DrawingSpace.LightningBoltShape()
    ls.BackColor = System.Drawing.Color.DarkTurquoise
    fpSpread1.ActiveSheet.AddShape(ls, 10, 2)
    fpSpread1.ActiveSheet.Cells(10, 1).Text = "Shape"
    Dim camera As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape()
    camera.Formula = "B10:D18"
    camera.ShadowColor = System.Drawing.Color.Red
    camera.ShadowDirection = FarPoint.Win.Spread.DrawingSpace.ShadowDirection.Right
    camera.ShapeOutlineStyle = System.Drawing.Drawing2D.DashStyle.Dot
    camera.ShapeOutlineThickness = 2
    camera.ShapeOutlineColor = System.Drawing.Color.Fuchsia
    camera.Location = New System.Drawing.Point(10, 40)
    fpSpread1.ActiveSheet.AddShape(camera)
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.DrawingSpace.ShadowDirection

    See Also