Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the text that is displayed on the hyperlink's tooltip.
Namespace: Microsoft.SharePoint.Publishing.Fields
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property ToolTip As String
Get
Set
'Usage
Dim instance As LinkFieldValue
Dim value As String
value = instance.ToolTip
instance.ToolTip = value
public string ToolTip { get; set; }
Property Value
Type: System.String
The default is an empty string.
Remarks
This property value is the title attribute of the <A> tag in the ToString output.
Examples
// You can change any of the following data that will be set into the LinkFieldValue.
private const string Newhref = "/Documents/SampleFile.docx";
private const bool NewUseDefaultIcon = false;
private const string NewTarget = "_blank";
private const string NewToolTip = "Sample tool tip for the link";
private const string NewTextPrefix = "Open [";
private const string NewTextSuffix = "] in a new window";
Note
This example is part of the larger LinkFieldValue sample in the LinkFieldValue topic.