MESCIUS SPREAD for Windows Forms 17.0J
SpreadCameraShape コンストラクタ(SheetView,CellRange)

キャプチャした領域を含む sheetView
sheetView のキャプチャした領域
新しいSpreadCameraShapeオブジェクトを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal sheetView As SheetView, _
   ByVal cellRange As CellRange _
)
public SpreadCameraShape( 
   SheetView sheetView,
   CellRange cellRange
)

パラメータ

sheetView
キャプチャした領域を含む sheetView
cellRange
sheetView のキャプチャした領域
次のサンプルコードは、セル範囲でシェイプを作成します。
FarPoint.Win.Spread.SheetView newsheet = new FarPoint.Win.Spread.SheetView();
newsheet.ColumnCount = 10;
newsheet.RowCount = 10;
newsheet.Cells[0, 0].BackColor = Color.Aqua;
newsheet.Cells[0, 0].Text = "test";
fpSpread1.Sheets[0] = newsheet;

FarPoint.Win.Spread.Model.CellRange range1 = new FarPoint.Win.Spread.Model.CellRange(0, 0, 3, 1);
FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape test = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape(newsheet, range1);
fpSpread1.Sheets[0].AddShape(test, 2, 2);
Dim newsheet As New FarPoint.Win.Spread.SheetView()
newsheet.ColumnCount = 10
newsheet.RowCount = 10
newsheet.Cells(0, 0).BackColor = Color.Aqua
newsheet.Cells(0, 0).Text = "test"
fpSpread1.Sheets(0) = newsheet

Dim range1 As New FarPoint.Win.Spread.Model.CellRange(0, 0, 3, 1)
Dim test As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape(newsheet, range1)
fpSpread1.Sheets(0).AddShape(test, 2, 2)
参照

SpreadCameraShape クラス
SpreadCameraShape メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.