PowerTools SPREAD for Windows Forms 10.0J
SheetCornerSpan プロパティ


シートコーナーのセル結合モデルを取得または設定します。
構文
'Declaration
 
Public Property SheetCornerSpan As ISheetSpanModel
'使用法
 
Dim instance As SheetView.DocumentModels
Dim value As ISheetSpanModel
 
instance.SheetCornerSpan = value
 
value = instance.SheetCornerSpan
public ISheetSpanModel SheetCornerSpan {get; set;}

プロパティ値

シートコーナーの結合。
次のサンプルコードは、SheetCornerSpanプロパティを設定します。
fpSpread1.Sheets[0].RowHeader.ColumnCount = 2;
fpSpread1.Sheets[0].ColumnHeader.RowCount = 2;
FarPoint.Win.Spread.StyleInfo stylei = new FarPoint.Win.Spread.StyleInfo();
stylei.BackColor = Color.Bisque;
FarPoint.Win.Spread.SheetView.DocumentModels dm = new FarPoint.Win.Spread.SheetView.DocumentModels();
dm = fpSpread1.ActiveSheet.Models;
dm.SheetCornerData.SetValue(0, 0, "Corner");
dm.SheetCornerSpan.Add(0, 0, 2, 2);
dm.SheetCornerStyle.SetDirectInfo(0, 0, stylei);
FpSpread1.Sheets(0).RowHeader.ColumnCount = 2
FpSpread1.Sheets(0).ColumnHeader.RowCount = 2
Dim stylei As New FarPoint.Win.Spread.StyleInfo()
stylei.BackColor = Color.Bisque
Dim dm As New FarPoint.Win.Spread.SheetView.DocumentModels()
dm = FpSpread1.ActiveSheet.Models
dm.SheetCornerData.SetValue(0, 0, "Corner")
dm.SheetCornerSpan.Add(0, 0, 2, 2)
dm.SheetCornerStyle.SetDirectInfo(0, 0, stylei)
参照

SheetView.DocumentModels クラス
SheetView.DocumentModels メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.