Spread for ASP.NET 7.0 Product Documentation
SheetAxisOrientation Enumeration
Example  See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace : SheetAxisOrientation Enumeration


Glossary Item Box

Specifies the orientation for the layout information, whether by row or column, for the axis model for the sheet.

Syntax

Visual Basic (Declaration) 
Public Enum SheetAxisOrientation 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As SheetAxisOrientation
C# 
public enum SheetAxisOrientation : System.Enum 

Members

MemberDescription
HorizontalOrients the layout by column (along the horizontal axis)
VerticalOrients the layout by row (along the vertical axis)

Example

This example creates a new DefaultSheetAxisModel and assigns it to the active sheet.
C#Copy Code
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;
}
Visual BasicCopy Code
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

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.