Spread Windows Forms 12.0 Product Documentation
SpreadCameraShape Constructor(String)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > SpreadCameraShape Class > SpreadCameraShape Constructor : SpreadCameraShape Constructor(String)
Refer to a cell range of a sheetView object to capture the content of the region
Creates a new SpreadCameraShape object with a specific formula.
Syntax
'Declaration
 
Public Function New( _
   ByVal formula As String _
)
'Usage
 
Dim formula As String
 
Dim instance As New SpreadCameraShape(formula)
public SpreadCameraShape( 
   string formula
)

Parameters

formula
Refer to a cell range of a sheetView object to capture the content of the region
Example
This example creates a shape using a block of cells.
fpSpread1.Sheets[0].Cells[0, 0].Text = "a";
fpSpread1.Sheets[0].Cells[1, 0].Text = "a";
FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape test = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape("A1:A5");
fpSpread1.Sheets[0].AddShape(test, 2, 2);
fpSpread1.Sheets(0).Cells(0, 0).Text = "a"
fpSpread1.Sheets(0).Cells(1, 0).Text = "a"
Dim test As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape("A1:A5")
fpSpread1.Sheets(0).AddShape(test, 2, 2)
See Also

Reference

SpreadCameraShape Class
SpreadCameraShape Members
Overload List