Edytuj

Udostępnij za pośrednictwem


Filter Interface

Definition

Represents a filter for a single column. The Filter object is a member of the Filters collection. The Filters collection contains all the filters in an autofiltered range.

public interface class Filter
[System.Runtime.InteropServices.Guid("00024434-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Filter
Public Interface Filter
Attributes

Remarks

Use Filters(index), where index is the filter title or index number, to return a single Filter object.

Note that all the properties of the Filter object are read-only. To set these properties, apply autofiltering manually or using the AutoFilter(Object, Object, XlAutoFilterOperator, Object, Object) method of the Range object.

Properties

_Operator
Application

Returns an Application object that represents the Microsoft Excel application.

Count

Returns the number of objects in the collection. Read-only Integer.

Creator

Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C.

Criteria1

Returns the first filtered value for the specified column in a filtered range.

Criteria2

Returns the second filtered value for the specified column in a filtered range.

On

True if the specified filter is on.

Operator

Returns the operator that associates the two criteria applied by the specified filter.

Parent

Returns the parent object for the specified object.

Applies to