Share via


TableOfContentsWebPart.AnchorLocation property

Gets or sets the server-relative URL of the location from which to start gathering data.

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

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
<ManagedLinkAttribute(Fixup := True)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property AnchorLocation As String
    Get
    Set
'Usage
Dim instance As TableOfContentsWebPart
Dim value As String

value = instance.AnchorLocation

instance.AnchorLocation = value
[WebBrowsableAttribute(false)]
[ManagedLinkAttribute(Fixup = true)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public string AnchorLocation { get; set; }

Property value

Type: System.String
The default value is an empty string.

Remarks

The Web Part shows the contents of the Web site, starting from the location indicated by this property. The AnchorLocation will automatically be corrected if the target of the AnchorLocation moves within the SharePoint Foundation system. An empty string for AnchorLocation indicates that the Web Part should be anchored at the context Web site (the Web site containing the page that includes the Web Part).

See also

Reference

TableOfContentsWebPart class

TableOfContentsWebPart members

Microsoft.SharePoint.Publishing.WebControls namespace