TOCPart Class

The TOCPart class displays area content.

Microsoft.SharePoint.Portal.WebControls.CategoryBase

Microsoft.SharePoint.Portal.WebControls.TOCPart

Public Constructors

The following table shows the constructors of the TOCPart class and a brief description of each.

Name Description
TOCPart Initializes a new instance of the TOCPart class.

Public Methods

The following table shows the methods of the TOCPart class and a brief description of each.

Name Description
Dispose Releases an allocation of cache that stored related data for the Web Part.
GetToolParts Inherits from System.Web.UI.Controls
OnLoad(object, System.EventArgs) Inherits from System.Web.UI.Controls
RenderWebPart(System.Web.UI.HtmlTextWriter) Inherits from System.Web.UI.Controls

Public Properties

The following table shows the properties of the TOCPart class, the data type of each property, and a brief description of each.

Name Data Type Description
CategoryCutOffLength Int32 Gets or sets the number of areas displayed.
CategoryID String Gets or sets the identifier of the area for which to show subareas.
DescriptionTrimLimit Int32 Gets or sets the length of the description. A value of 0 equals no trim.
HorizontallyAligned Boolean Gets or sets a value indicating whether areas are aligned horizontally.
ListingCutOffLength Int32 Gets or sets the number of listings displayed.
NumberOfTopLevelColumns Int32 Gets or sets the number of top-level columns.
ShowCatIcon Boolean Gets or sets a value indicating whether the area icon is displayed.
ShowDescription Boolean Gets or sets a value indicating whether the description is displayed.
ShowListings Boolean Gets or sets a value indicating whether the listings are displayed.
ShowLstIcon Boolean Gets or sets a value indicating whether the listing icon is displayed.
ShowRootListings Boolean Gets or sets a value indicating whether the listings of the root area are displayed.
ShowTitle Boolean Gets or sets a value indicating whether the title of the Web Part is displayed.
VerticalLayout Boolean Gets or sets a value indicating whether the layout of the areas and listings is vertical or horizontal.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Remarks

Microsoft recommends that the user create Web Parts by using the BaseAreaWebPart class. Microsoft does not recommend subclassing this class.

Requirements

Namespace: Microsoft.SharePoint.Portal.WebControls

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security