Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread.Model Namespace / DefaultSheetAxisModel Class / GetResizable Method
Row or column index
Example


In This Topic
    GetResizable Method (DefaultSheetAxisModel)
    In This Topic
    Gets whether users can resize the specified row or column.
    Syntax
    'Declaration
     
    Public Overrides Function GetResizable( _
       ByVal index As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As DefaultSheetAxisModel
    Dim index As Integer
    Dim value As Boolean
     
    value = instance.GetResizable(index)
    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.
    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
    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());
    }
    See Also