Partager via


SortFields Members

Include Protected Members
Include Inherited Members

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

The SortFields type exposes the following members.

Properties

  Name Description
Public property _Default
Public property 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.
Public property Count Returns the number of objects in the collection. Read-only.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created. Read-only.
Public property Item Returns a SortField object that represents a collection of items that can be sorted in a workbook. Read-only.
Public property Parent Returns the parent object for the specified object. Read-only.

Top

Methods

  Name Description
Public method Add Creates a new sort field and returns a SortField object.
Public method Clear Clears all the SortField objects.
Public method GetEnumerator() (Inherited from IEnumerable.)
Public method GetEnumerator()

Top

See Also

Reference

SortFields Interface

Microsoft.Office.Interop.Excel Namespace