method ExFileView.ApplyFilter ()
Applies the filter. /*not supported in the lite version*/

 TypeDescription 
The ApplyFilter method updates the control's content once that user sets the filter using the ColumnFilter and ColumnFilterType properties. Use the ClearFilter method to clear the control's filter. Use the ColumnFilterButton property to show the filter drop down button in the column's caption.

The following VB sample filters for executable files:

With ExFileView1
    .ColumnFilterButton("Name") = True
    .ColumnFilter("Name") = "*.exe|*.com|*.bat"
    .ColumnFilterType("Name") = exPattern
    .ApplyFilter
End With 

The following C++ sample filters for executable files:

m_fileview.SetColumnFilterButton("Name", TRUE );
m_fileview.SetColumnFilter( "Name", "*.exe|*.com|*.bat" );
m_fileview.SetColumnFilterType( "Name", 1 /*exPattern*/ );
m_fileview.ApplyFilter();

The following VB.NET sample filters for executable files:

With AxExFileView1
    .set_ColumnFilterButton("Name", True)
    .set_ColumnFilter("Name", "*.exe|*.com|*.bat")
    .set_ColumnFilterType("Name", EXFILEVIEWLib.FilterTypeEnum.exPattern)
    .ApplyFilter()
End With

The following C# sample filters for executable files:

axExFileView1.set_ColumnFilterButton("Name", true);
axExFileView1.set_ColumnFilter("Name", "*.exe|*.com|*.bat");
axExFileView1.set_ColumnFilterType("Name", EXFILEVIEWLib.FilterTypeEnum.exPattern);
axExFileView1.ApplyFilter();

The following VFP sample filters for executable files:

With thisform.FileView1
    .Object.ColumnFilterButton("Name") = .t.
    .Object.ColumnFilter("Name") = "*.exe|*.com|*.bat"
    .Object.ColumnFilterType("Name") = 1
    .ApplyFilter
EndWith
 


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.