Spread Windows Forms 10.0 Product Documentation
ShadowOffsetX Property
Example 


Gets or sets the amount of horizontal offset of the shadow of the object.
Syntax
'Declaration
 
Public Property ShadowOffsetX As Single
'Usage
 
Dim instance As PSShape
Dim value As Single
 
instance.ShadowOffsetX = value
 
value = instance.ShadowOffsetX
public float ShadowOffsetX {get; set;}

Property Value

Single-precision, floating point number of pixels in the size of the offset of the shadow of the shape along the x-axis
Example
This example shows the use of the property in customizing a shape to illustrate the use of the property for classes that inherit this property.
FarPoint.Win.Spread.DrawingSpace.FourWayArrowShape sh = new FarPoint.Win.Spread.DrawingSpace.FourWayArrowShape();
sh.Name = "Arrow";
fpSpread1.ActiveSheet.AddShape(sh);

FarPoint.Win.Spread.DrawingSpace.PSShape ps;
ps = fpSpread1.ActiveSheet.GetShape("Arrow");
ps.AlphaBlendShadowColor = 150;
ps.BackColor = Color.Red;
ps.CanRenderText = true;
ps.DynamicMove = true;
ps.DynamicSize = true;
ps.ShadowColor = Color.Orange;
ps.ShadowDirection = FarPoint.Win.Spread.DrawingSpace.ShadowDirection.TopLeft;
ps.ShadowOffset = 5;
ps.ShadowOffsetX = 10;
ps.ShadowOffsetY = 10;

Dim sh As New FarPoint.Win.Spread.DrawingSpace.FourWayArrowShape
sh.Name = "Arrow"
FpSpread1.ActiveSheet.AddShape(sh)

Dim ps As FarPoint.Win.Spread.DrawingSpace.PSShape
ps = FpSpread1.ActiveSheet.GetShape("Arrow")
ps.AlphaBlendShadowColor = 150
ps.BackColor = Color.Red
ps.CanRenderText = True
ps.DynamicMove = True
ps.DynamicSize = True
ps.ShadowColor = Color.Orange
ps.ShadowDirection = DrawingSpace.ShadowDirection.TopLeft
ps.ShadowOffset = 5
ps.ShadowOffsetX = 10
ps.ShadowOffsetY = 10
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

PSShape Class
PSShape Members

 

 


Copyright © GrapeCity, inc. All rights reserved.