SortFields SortFields 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] _Default[Object] _Default[Object]
Application Application 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 Count Count

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

Creator Creator Creator

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

Item[Object] Item[Object] Item[Object]

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

Parent Parent Parent

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

Methods

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

Creates a new sort field and returns a SortField object.

Clear() Clear() Clear()

Clears all the SortField objects.

GetEnumerator() GetEnumerator() GetEnumerator()

Applies to