Spread for ASP.NET 8.0 Product Documentation
Orientation Property (DefaultSheetAxisModel)
Example 


Gets the axis orientation; whether the object is a row or a column.
Syntax
'Declaration
 
Public ReadOnly Property Orientation As SheetAxisOrientation
'Usage
 
Dim instance As DefaultSheetAxisModel
Dim value As SheetAxisOrientation
 
value = instance.Orientation
public SheetAxisOrientation Orientation {get;}

Property Value

SheetAxisOrientation setting that determines the orientation (horizontal for rows, vertical for columns)
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.
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
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

Reference

DefaultSheetAxisModel Class
DefaultSheetAxisModel Members
SheetAxisOrientation enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.