Spread Windows Forms 11.0 Product Documentation
ToolTipText Property (TipNotify)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TipNotify Class : ToolTipText Property
Gets or sets the tool tip text.
Syntax
'Declaration
 
Public Property ToolTipText As String
'Usage
 
Dim instance As TipNotify
Dim value As String
 
instance.ToolTipText = value
 
value = instance.ToolTipText
public string ToolTipText {get; set;}

Property Value

A System.String value that indicates the tool tip text. The default is String.Empty.
Example
This example uses the value comparison validator.
//Type a value in cell 1,1
FarPoint.Win.Spread.TipNotify tnote = new FarPoint.Win.Spread.TipNotify();
tnote.ToolTipText = "Greater than 5";
tnote.ToolTipTitle = "Error";
tnote.ToolTipIcon = ToolTipIcon.Error;
FarPoint.Win.Spread.CompareValueValidator compare = new FarPoint.Win.Spread.CompareValueValidator();
compare.ComparedOperator = FarPoint.Win.Spread.ValidateComparisonOperator.GreaterThan;
compare.ComparedValue = 5;
compare.Actions.Add(tnote);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), compare);
'Type a value in cell 1,1
Dim tnote As New FarPoint.Win.Spread.TipNotify()
tnote.ToolTipText = "Greater than 5"
tnote.ToolTipTitle = "Error"
tnote.ToolTipIcon = ToolTipIcon.Error
Dim compare As New FarPoint.Win.Spread.CompareValueValidator()
compare.ComparedOperator = FarPoint.Win.Spread.ValidateComparisonOperator.GreaterThan
compare.ComparedValue = 5
compare.Actions.Add(tnote)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), compare)
See Also

Reference

TipNotify Class
TipNotify Members