Spread for ASP.NET 7.0 Product Documentation
DefaultSheetAxisModel Constructor(Int32,SheetAxisOrientation)
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetAxisModel Class > DefaultSheetAxisModel Constructor : DefaultSheetAxisModel Constructor(Int32,SheetAxisOrientation)


count
Number of rows or columns in the model
orientation
Orientation of the model

Glossary Item Box

Creates an axis model (DefaultSheetAxisModel object) with the specified number of rows or columns, and no parent model.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal count As Integer, _
   ByVal orientation As SheetAxisOrientation _
)
Visual Basic (Usage)Copy Code
Dim count As Integer
Dim orientation As SheetAxisOrientation
 
Dim instance As New DefaultSheetAxisModel(count, orientation)
C# 
public DefaultSheetAxisModel( 
   int count,
   SheetAxisOrientation orientation
)

Parameters

count
Number of rows or columns in the model
orientation
Orientation of the model

Example

The following example creates two DefaultSheetAxisModel objects, a parent and a child, then sets the size of the first column to 50 in the parent model and the default size to 10 in the child model, and sets the child model into the active SheetView of the Spread component. The first column in the sheet has a width of 50 inherited from the parent axis model, and all other columns have the default width of 10 inherited from the default setting for the child model.
Visual BasicCopy Code
DefaultSheetAxisModel parent = New DefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal)
DefaultSheetAxisModel child = New DefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal,parent)
parent.SetSize(0,50)
child.SetSize(-1,10)
FpSpread1.ActiveSheetView.ColumnAxisModel=child
C#Copy Code
DefaultSheetAxisModel parent = new DefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal);
DefaultSheetAxisModel child = new DefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal,parent);
parent.SetSize(0,50);
child.SetSize(-1,10);
FpSpread1.ActiveSheetView.ColumnAxisModel=child;

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.