MESCIUS SPREAD for ASP.NET 10.0J
SheetAxisOrientation 列挙体

シートの軸モデルに対し、行または列ごとのレイアウト情報の向きを 指定します。
構文
'Declaration
 
Public Enum SheetAxisOrientation 
   Inherits System.Enum
public enum SheetAxisOrientation : System.Enum 
メンバ
メンバ説明
Horizontalレイアウトの基準を列にします(横軸)。
Verticalレイアウトの基準を行にします(縦軸)。
この例では、新しいDefaultSheetAxisModelオブジェクトを作成し、それをアクティブシートに割り当てます。
public class mySheetAxisModel : FarPoint.Web.Spread.Model.DefaultSheetAxisModel
{
    public override int GetSize(int index)
    {
        return 180;
    }
}

private void Page_Load(object sender, System.EventArgs e)
{
    if (this.IsPostBack) return;

    mySheetAxisModel parent = new mySheetAxisModel();
    FarPoint.Web.Spread.Model.DefaultSheetAxisModel model = new FarPoint.Web.Spread.Model.DefaultSheetAxisModel(FpSpread1.ActiveSheetView.ColumnCount, FarPoint.Web.Spread.Model.SheetAxisOrientation.Horizontal, parent);
    FpSpread1.ActiveSheetView.ColumnAxisModel = model;
}
Public Class mySheetAxisModel
    Inherits FarPoint.Web.Spread.Model.DefaultSheetAxisModel
    
    Public Overrides Function GetSize(ByVal index As Integer) As Integer
        Return 180
    End Function
End Class

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If IsPostBack Then Return

    Dim parent As New mySheetAxisModel()
    Dim model As New FarPoint.Web.Spread.Model.DefaultSheetAxisModel(FpSpread1.ActiveSheetView.ColumnCount, FarPoint.Web.Spread.Model.SheetAxisOrientation.Horizontal, parent)
    FpSpread1.ActiveSheetView.ColumnAxisModel = model
End Sub
継承階層

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.Model.SheetAxisOrientation

参照

FarPoint.Web.Spread.Model 名前空間

 

 


© MESCIUS inc. All rights reserved.