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


index
Row or column index

Glossary Item Box

Gets whether users can resize the specified row or column.

Syntax

Visual Basic (Declaration) 
Public Overrides Function GetResizable( _
   ByVal index As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetAxisModel
Dim index As Integer
Dim value As Boolean
 
value = instance.GetResizable(index)
C# 
public override bool GetResizable( 
   int index
)

Parameters

index
Row or column index

Return Value

true if the row or column is resizable by the user; false otherwise

Example

This example shows how to use the methods of the DefaultSheetAxisModel class.
Visual BasicCopy Code
PrivateSubPage_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load
DimisheetAsFarPoint.Web.Spread.Model.DefaultSheetAxisModel=FpSpread1.ActiveSheetView.ColumnAxisModel
isheet.SetResizable(0,False)
isheet.SetSize(0,240)
isheet.SetSortIndicator(0,FarPoint.Web.Spread.Model.SortIndicator.Descending)
isheet.SetTag(0,"Test")
isheet.SetVisible(1,False)
Dimi,i1,i2,i3AsInteger
Dimb,b1,b2,b3AsBoolean
DimStrAsObject
DimsiAsFarPoint.Web.Spread.Model.SortIndicator
b=isheet.GetResizable(0)
ListBox1.Items.Add(b.ToString())
b1=isheet.GetVisible(1)
ListBox1.Items.Add(b1.ToString())
i=isheet.GetSize(0)
ListBox1.Items.Add(i.ToString())
i1=isheet.GetHashCode()
ListBox1.Items.Add(i1.ToString())
Str=isheet.GetTag(0)
ListBox1.Items.Add(Str.ToString())
si=isheet.GetSortIndicator(0)
ListBox1.Items.Add(si.ToString())
b2=isheet.IsEmpty()
ListBox1.Items.Add(b2.ToString())
b3=isheet.IsPropertySet(0,FarPoint.Web.Spread.Model.SheetAxisProperty.Size)
ListBox1.Items.Add(b3.ToString())
EndSub
C#Copy Code
privatevoidPage_Load(objectsender,System.EventArgse)
{
if(this.IsPostBack)return;

FarPoint.Web.Spread.Model.DefaultSheetAxisModelisheet=null;
isheet=(FarPoint.Web.Spread.Model.DefaultSheetAxisModel)FpSpread1.ActiveSheetView.ColumnAxisModel;
isheet.SetResizable(0,false);
isheet.SetSize(0,240);
isheet.SetSortIndicator(0,FarPoint.Web.Spread.Model.SortIndicator.Descending);
isheet.SetTag(0,"Test");
isheet.SetVisible(1,false);
inti,i1;
boolb,b1,b2,b3;
objectstr;
FarPoint.Web.Spread.Model.SortIndicatorsi;
b=isheet.GetResizable(0);
ListBox1.Items.Add(b.ToString());
b1=isheet.GetVisible(1);
ListBox1.Items.Add(b1.ToString());
i=isheet.GetSize(0);
ListBox1.Items.Add(i.ToString());
i1=isheet.GetHashCode();
ListBox1.Items.Add(i1.ToString());
str=isheet.GetTag(0);
ListBox1.Items.Add(str.ToString());
si=isheet.GetSortIndicator(0);
ListBox1.Items.Add(si.ToString());
b2=isheet.IsEmpty();
ListBox1.Items.Add(b2.ToString());
b3=isheet.IsPropertySet(0,FarPoint.Web.Spread.Model.SheetAxisProperty.Size);
ListBox1.Items.Add(b3.ToString());
}

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.