Spread for ASP.NET 7.0 Product Documentation
GetResizable Method
See Also  Example Support Options
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
Private Sub Page_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)Handles MyBase.Load
Dim isheet As 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)
Dim i,i1,i2,i3 As Integer
Dim b,b1,b2,b3 As Boolean
Dim Str As Object
Dim si As FarPoint.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())
End Sub
C#Copy Code
private void Page_Load(object sender,System.EventArgs e)
{
if(this.IsPostBack)return;

FarPoint.Web.Spread.Model.DefaultSheetAxisModel isheet=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);
int i,i1;
bool b,b1,b2,b3;
object str;
FarPoint.Web.Spread.Model.SortIndicator si;
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 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.