Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / GetViewColumnFromModelColumn Method
Model column index
Example


In This Topic
    GetViewColumnFromModelColumn Method
    In This Topic
    Gets the sheet column index for a specified model column.
    Syntax
    'Declaration
     
    Public Function GetViewColumnFromModelColumn( _
       ByVal column As Integer _
    ) As Integer
    'Usage
     
    Dim instance As SheetView
    Dim column As Integer
    Dim value As Integer
     
    value = instance.GetViewColumnFromModelColumn(column)
    public int GetViewColumnFromModelColumn( 
       int column
    )

    Parameters

    column
    Model column index

    Return Value

    Integer column index in the sheet corresponding to the specified column in the model
    Example
    This example returns the sheet column index for a specified model column.
    FarPoint.Web.Spread.SheetView sv;
    sv = FpSpread1.ActiveSheetView;
    int i;
    i = sv.GetViewColumnFromModelColumn(0);
    Response.Write("The index is " + i.ToString());
    
    Dim sv As FarPoint.Web.Spread.SheetView
    sv = FpSpread1.ActiveSheetView
    Dim i As Integer
    i = sv.GetViewColumnFromModelColumn(0)
    Response.Write("The index is " & i.ToString())
    See Also