Share via


Column.Sort Method

Sorts the specified table column.

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

Syntax

'Declaration
Sub Sort ( _
    ByRef ExcludeHeader As Object, _
    ByRef SortFieldType As Object, _
    ByRef SortOrder As Object, _
    ByRef CaseSensitive As Object, _
    ByRef BidiSort As Object, _
    ByRef IgnoreThe As Object, _
    ByRef IgnoreKashida As Object, _
    ByRef IgnoreDiacritics As Object, _
    ByRef IgnoreHe As Object, _
    ByRef LanguageID As Object _
)
'Usage
Dim instance As Column
Dim ExcludeHeader As Object
Dim SortFieldType As Object
Dim SortOrder As Object
Dim CaseSensitive As Object
Dim BidiSort As Object
Dim IgnoreThe As Object
Dim IgnoreKashida As Object
Dim IgnoreDiacritics As Object
Dim IgnoreHe As Object
Dim LanguageID As Object

instance.Sort(ExcludeHeader, SortFieldType, _
    SortOrder, CaseSensitive, BidiSort, _
    IgnoreThe, IgnoreKashida, IgnoreDiacritics, _
    IgnoreHe, LanguageID)
void Sort(
    ref Object ExcludeHeader,
    ref Object SortFieldType,
    ref Object SortOrder,
    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%
    A value that indicates whether to exclude the first row or paragraph header from the sort operation. The default value is False.
  • CaseSensitive
    Type: System.Object%
    A value that indicates whether to sort with case sensitivity. The default value is False.
  • BidiSort
    Type: System.Object%
    A value that indicates whether 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%
    A value that indicates whether 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%
    A value that indicates whether 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%
    A value that indicates whether 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%
    A value that indicates whether 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.

Remarks

If you want to sort paragraphs within a table cell, include only the paragraphs and not the end-of-cell mark; if you include the end-of-cell mark in a selection or range and then attempt to sort the paragraphs, Microsoft Word displays a message stating that it found no valid records to sort.

See Also

Reference

Column Interface

Column Members

Microsoft.Office.Interop.Word Namespace