Spread Windows Forms 12.0 Product Documentation
ToolTipSpan Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TipNotify Class : ToolTipSpan Property
Gets or sets the period of time, in milliseconds, the tool tip is displayed.
Syntax
'Declaration
 
Public Property ToolTipSpan As Integer
'Usage
 
Dim instance As TipNotify
Dim value As Integer
 
instance.ToolTipSpan = value
 
value = instance.ToolTipSpan
public int ToolTipSpan {get; set;}

Property Value

A System.Int32 value that indicates the period of time, in milliseconds, the tool tip is displayed. The default is 5000.
Exceptions
ExceptionDescription
The assigned value is less than 0.
Remarks
If the value is set to 0, the action uses a value of 5000.
Example
This example uses the tip notification.
//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;
tnote.ToolTipSpan = 1000;
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
tnote.ToolTipSpan = 1000
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