Spread ASP.NET 6.0 Product Documentation
SheetAxisOrientation Enumeration
Example  See Also  Send Feedback
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
publicclassmySheetAxisModel:FarPoint.Web.Spread.Model.DefaultSheetAxisModel
{
publicoverrideintGetSize(intindex)
{
return180;
}
}

privatevoidPage_Load(objectsender,System.EventArgse)
{
if(this.IsPostBack)return;

mySheetAxisModelparent=newmySheetAxisModel();
FarPoint.Web.Spread.Model.DefaultSheetAxisModelmodel=newFarPoint.Web.Spread.Model.DefaultSheetAxisModel(FpSpread1.ActiveSheetView.ColumnCount,FarPoint.Web.Spread.Model.SheetAxisOrientation.Horizontal,parent);
FpSpread1.ActiveSheetView.ColumnAxisModel=model;
}
Visual BasicCopy Code
PublicClassmySheetAxisModel
InheritsFarPoint.Web.Spread.Model.DefaultSheetAxisModel

PublicOverridesFunctionGetSize(ByValindexAsInteger)AsInteger
Return180
EndFunction

EndClass

PrivateSubPage_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load
If(IsPostBack)ThenReturn

DimparentAsNewmySheetAxisModel()
DimmodelAsNewFarPoint.Web.Spread.Model.DefaultSheetAxisModel(FpSpread1.ActiveSheetView.ColumnCount,FarPoint.Web.Spread.Model.SheetAxisOrientation.Horizontal,parent)
FpSpread1.ActiveSheetView.ColumnAxisModel=model
EndSub

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.