Spread Windows Forms 12.0 Product Documentation
Size Property (SpreadCameraShape)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > SpreadCameraShape Class : Size Property
Gets or sets the size of the object.
Syntax
'Declaration
 
Public Overrides Property Size As Size
'Usage
 
Dim instance As SpreadCameraShape
Dim value As Size
 
instance.Size = value
 
value = instance.Size
public override Size Size {get; set;}
Example
This example sets the Size property.
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);
camera.Size = new System.Drawing.Size(200, 250);
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)
camera.Size = New System.Drawing.Size(200, 250)
See Also

Reference

SpreadCameraShape Class
SpreadCameraShape Members