Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / Column Class / AutoFilterIndex Property
Example


In This Topic
    AutoFilterIndex Property (Column)
    In This Topic
    Gets or sets the automatic filter index for the column.
    Syntax
    'Declaration
     
    Public Property AutoFilterIndex As Integer
    'Usage
     
    Dim instance As Column
    Dim value As Integer
     
    instance.AutoFilterIndex = value
     
    value = instance.AutoFilterIndex
    public int AutoFilterIndex {get; set;}
    Example
    This example sets the AutoFilterIndex property.
    FarPoint.Win.Spread.ColumnHeader ch;
    ch = fpSpread1.ActiveSheet.ColumnHeader;
    ch.RowCount = 3;
    fpSpread1.ActiveSheet.Columns[1].AllowAutoFilter = true;
    fpSpread1.ActiveSheet.Columns[1].AutoFilterIndex = 1;
    Dim ch As FarPoint.Win.Spread.ColumnHeader
    ch = FpSpread1.ActiveSheet.ColumnHeader
    ch.RowCount = 3
    FpSpread1.ActiveSheet.Columns(1).AllowAutoFilter = True
    FpSpread1.ActiveSheet.Columns(1).AutoFilterIndex = 1
    See Also