Type | Description | |||
ColumnName as String | A string expression that indicates the column's name. The valid values are: 'Name', 'Size', 'Modified', 'Type', 'In Folder' | |||
Double | A double expression that indicates the width of the drop down filter window. |
If the FilterBarDropDownWidth property is negative, the absolute value of the FilterBarDropDownWidth property indicates the width of the drop down filter window in pixels. In this case, the width of the drop down filter window is not proportionally with the width of the column. For instance, the following sample specifies the width of the drop down filter window being 100 pixels:
With ExFileView1 .FilterBarDropDownWidth("Name") = -100 End With
If the FilterBarDropDownWidth property is greater than 0, it indicates the width of the drop down filter window proportionally with the width of column. For instance, the following sample specifies the width of the drop down filter window being half of the width of the column:
With ExFileView1 .FilterBarDropDownWidth("Name") = 0.5 End With
The drop down filter window always include an item.
The following VB sample adds custom filter patterns for executable files:
With ExFileView1 .FilterBarDropDownHeight = 0.7 .ColumnFilterButton("Name") = True .AddColumnCustomFilter "Name", "(Executable files)", "*.exe|*.com|*.bat" End With
The following C++ sample adds custom filter patterns for executable files:
m_fileview.SetFilterBarDropDownHeight( 0.7 ); m_fileview.SetColumnFilterButton("Name", TRUE ); m_fileview.AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat");
The following VB.NET sample adds custom filter patterns for executable files:
With AxExFileView1 .FilterBarDropDownHeight = 0.7 .set_ColumnFilterButton("Name", True) .AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat") End With
The following C# sample adds custom filter patterns for executable files:
axExFileView1.FilterBarDropDownHeight = 0.7; axExFileView1.set_ColumnFilterButton("Name", true); axExFileView1.AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat");
The following VFP sample adds custom filter patterns for executable files:
With thisform.ExFileView1 .FilterBarDropDownHeight = 0.7 .Object.ColumnFilterButton("Name") = .t. .AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat") EndWith