Export (0) Print
Expand All
Expand Minimize

Range.Sort method

Sorts the paragraphs in the specified range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void Sort(
	ref Object ExcludeHeader,
	ref Object FieldNumber,
	ref Object SortFieldType,
	ref Object SortOrder,
	ref Object FieldNumber2,
	ref Object SortFieldType2,
	ref Object SortOrder2,
	ref Object FieldNumber3,
	ref Object SortFieldType3,
	ref Object SortOrder3,
	ref Object SortColumn,
	ref Object Separator,
	ref Object CaseSensitive,
	ref Object BidiSort,
	ref Object IgnoreThe,
	ref Object IgnoreKashida,
	ref Object IgnoreDiacritics,
	ref Object IgnoreHe,
	ref Object LanguageID
)

Parameters

ExcludeHeader
Type: System.Object

Optional Object. True to exclude the first row or paragraph header from the sort operation. The default value is False.

FieldNumber
Type: System.Object

Optional Object. The fields to sort by. Microsoft Word sorts by FieldNumber, then by FieldNumber2, and then by FieldNumber3.

SortFieldType
Type: System.Object

Optional Object. The respective sort types for FieldNumber, FieldNumber2, and FieldNumber3. Can be one of the WdSortFieldType constants.

SortOrder
Type: System.Object

Optional Object. The sorting order to use when sorting FieldNumber, FieldNumber2, and FieldNumber3. Can be one of the WdSortOrder constants.

FieldNumber2
Type: System.Object

Optional Object. The fields to sort by. Microsoft Word sorts by FieldNumber, then by FieldNumber2, and then by FieldNumber3

SortFieldType2
Type: System.Object

Optional Object. The respective sort types for FieldNumber, FieldNumber2, and FieldNumber3. Can be one of the WdSortFieldType constants

SortOrder2
Type: System.Object

Optional Object. The sorting order to use when sorting FieldNumber, FieldNumber2, and FieldNumber3. Can be one of the WdSortOrder constants.

FieldNumber3
Type: System.Object

Optional Object. The fields to sort by. Microsoft Word sorts by FieldNumber, then by FieldNumber2, and then by FieldNumber3

SortFieldType3
Type: System.Object

Optional Object. The respective sort types for FieldNumber, FieldNumber2, and FieldNumber3. Can be one of the WdSortFieldType constants

SortOrder3
Type: System.Object

Optional Object. The sorting order to use when sorting FieldNumber, FieldNumber2, and FieldNumber3. Can be one of the WdSortOrder constants.

SortColumn
Type: System.Object

Optional Object. True to sort only the column specified by the Range object.

Separator
Type: System.Object

Optional Object. The type of field separator. Can be one of the WdSortSeparator constants.

CaseSensitive
Type: System.Object

Optional Object. True to sort with case sensitivity. The default value is False.

BidiSort
Type: System.Object

Optional Object. True to sort based on right-to-left language rules. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

IgnoreThe
Type: System.Object

Optional Object. True to ignore the Arabic character alef lam when sorting right-to-left language text. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

IgnoreKashida
Type: System.Object

Optional Object. True to ignore kashidas when sorting right-to-left language text. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

IgnoreDiacritics
Type: System.Object

Optional Object. True to ignore bidirectional control characters when sorting right-to-left language text. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

IgnoreHe
Type: System.Object

Optional Object. True to ignore the Hebrew character he when sorting right-to-left language text. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

LanguageID
Type: System.Object

Optional Object. LanguageIDOptionalObject. Specifies the sorting language. Can be one of the WdLanguageIDconstants.

Show:
© 2014 Microsoft