Spread Windows Forms 12.0 Product Documentation
DynamicMove Property

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > PSShape Class : DynamicMove Property
Gets or sets whether the object moves when hiding or showing, resizing, or moving rows or columns.
Public Overridable Property DynamicMove As Boolean
Dim instance As PSShape
Dim value As Boolean
instance.DynamicMove = value
value = instance.DynamicMove
public virtual bool DynamicMove {get; set;}

Property Value

Boolean: true if successful; false otherwise

This property is available at run time only.

The DynamicSize property always return false if the DynamicMove property is false.

If the DynamicSize property is set in code, then the value takes effect when the DynamicMove property of the shape is set to true; otherwise, DynamicSize can be true only when DynamicMove is true.

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";

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"

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
See Also


PSShape Class
PSShape Members