Edit

Share via


SortFields Interface

Definition

The SortFields collection is a collection of SortField objects. It allows developers to store a sort state on workbooks, lists, and autofilters.

public interface class SortFields : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000244AA-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface SortFields : System.Collections.IEnumerable
Public Interface SortFields
Implements IEnumerable
Attributes
Implements

Remarks

The object contains properties to add, count, sort, and remove SortField objects.

Properties

_Default[Object]
Application

When used without an object qualifier, this property returns an _Application object that represents the Microsoft Office Excel application. When used with an object qualifier, this property returns an _Application object that represents the creator of the specified object. Read-only.

Count

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

Creator

Returns a 32-bit integer that indicates the application in which this object was created. Read-only.

Item[Object]

Returns a SortField object that represents a collection of items that can be sorted in a workbook. Read-only.

Parent

Returns the parent object for the specified object. Read-only.

Methods

Add(Range, Object, Object, Object, Object)

Creates a new sort field and returns a SortField object.

Clear()

Clears all the SortField objects.

GetEnumerator()

Applies to