Spread ASP.NET 6.0 Product Documentation
Orientation Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetAxisModel Class : Orientation Property


Glossary Item Box

Gets the axis orientation; whether the object is a row or column.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Orientation As SheetAxisOrientation
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetAxisModel
Dim value As SheetAxisOrientation
 
value = instance.Orientation
C# 
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.
Visual BasicCopy Code
DefaultSheetAxisModelparent=NewDefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal)
DefaultSheetAxisModelchild=NewDefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal,parent)
parent.SetSize(0,50)
child.SetSize(-1,10)
FpSpread1.ActiveSheetView.ColumnAxisModel=child
C#Copy Code
DefaultSheetAxisModelparent=NewDefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal);
DefaultSheetAxisModelchild=NewDefaultSheetAxisModel(10,SheetAxisOrientation.Horizontal,parent);
parent.SetSize(0,50);
child.SetSize(-1,10);
FpSpread1.ActiveSheetView.ColumnAxisModel=child;

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.