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
<ManagedLinkAttribute(Fixup := True)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property AnchorLocation As String
Get
Set
'Usage
Dim instance As TableOfContentsWebPart
Dim value As String
value = instance.AnchorLocation
instance.AnchorLocation = value
[ManagedLinkAttribute(Fixup = true)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
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 Windows SharePoint Services 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).