Share via


TableOfContentsWebPart.SortWebsByDirection property

Gets or sets an enumeration value that specifies the sort direction for the Web site sort order.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property SortWebsByDirection As TableOfContentsWebPart.SortDirection
    Get
    Set
'Usage
Dim instance As TableOfContentsWebPart
Dim value As TableOfContentsWebPart.SortDirection

value = instance.SortWebsByDirection

instance.SortWebsByDirection = value
[WebBrowsableAttribute(false)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public TableOfContentsWebPart.SortDirection SortWebsByDirection { get; set; }

Property value

Type: Microsoft.SharePoint.Publishing.WebControls.TableOfContentsWebPart.SortDirection

Remarks

If you have selected a manual sort order in SortWebsBy, you can use this property to determine the direction of the sort. The default value is SortDirection.Asc.

See also

Reference

TableOfContentsWebPart class

TableOfContentsWebPart members

Microsoft.SharePoint.Publishing.WebControls namespace