SortField Members

Include Protected Members
Include Inherited Members

The SortField object contains all the sort information for the Worksheet, ListObject, and AutoFilter objects.

The SortField type exposes the following members.

Properties

  Name Description
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 Creator Returns a 32-bit integer that indicates the application in which this object was created. Read-only.
Public property CustomOrder Specifies a custom order to sort the fields. Read/write.
Public property DataOption Specifies how to sort text in the range specified in SortField object. Read/write.
Public property Key Specifies the range that is currently being sorted on. Read-only.
Public property Order Determines the sort order for the values specified in the key. Read/write.
Public property Parent Returns the parent object for the specified object. Read-only.
Public property Priority Specifies the priority for the sort field. Read/write.
Public property SortOn Returns or sets what attribute of the cell to sort on . Read/write.
Public property SortOnValue Retun the value on which the sort is performed for the specified SortField object. Read-only.

Top

Methods

  Name Description
Public method Delete Removes the specified SortField object from the SortFields collection.
Public method ModifyKey Modify the key value by which values are sorted in the field.
Public method SetIcon Sets an icon for a SortField object.

Top

See Also

Reference

SortField Interface

Microsoft.Office.Interop.Excel Namespace