FarPoint.Win.Spread
ScrollTipPolicy Property
See Also  Example
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ScrollTipPolicy Property


Gets or sets whether scroll tips appear when the user moves the scroll box in the component.

Syntax

Visual Basic (Declaration) 
Public Property ScrollTipPolicy As ScrollTipPolicy
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As ScrollTipPolicy
 
instance.ScrollTipPolicy = value
 
value = instance.ScrollTipPolicy
C# 
public ScrollTipPolicy ScrollTipPolicy {get; set;}

Return Value

ScrollTipPolicy setting that determines whether the Spread component displays the text tip when the user moves the scroll box

Example

This example specifies several aspects of the scroll bars for the Spread component. Scroll bars appear larger than the default size. For scrolling horizontally, the spreadsheet scrolls as you move the scroll box; for scrolling vertically, the scroll bar tip shows the row number, but the spreadsheet does not scroll until you are done.
C#Copy Code
FarPoint.Win.Spread.FpSpread fpSpread1 = new FarPoint.Win.Spread.FpSpread();
FarPoint.Win.Spread.SheetView shv =
new FarPoint.Win.Spread.SheetView();
fpSpread1.Location =
new Point(10, 10);
fpSpread1.Height = 200;
fpSpread1.Width = 400;
Controls.Add(fpSpread1);
fpSpread1.Sheets.Add(shv);
fpSpread1.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both;
Visual BasicCopy Code
Dim fpSpread1 As New FarPoint.Win.Spread.FpSpread()
Dim shv As New FarPoint.Win.Spread.SheetView()
fpSpread1.Location = New Point(10, 10)
fpSpread1.Height = 200
fpSpread1.Width = 400
Controls.Add(fpSpread1)
fpSpread1.Sheets.Add(shv)
fpSpread1.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both

Remarks

This property allows the user to see the row number (for vertical scrolling) or column number (for horizontal scrolling). By holding the pointer on the scroll bar, the number appears in a ToolTip window.

Here is a typical scroll bar tip with the row number displayed next to the vertical scroll bar:

Example Scroll Bar Tip

Scroll bar tips are not displayed automatically by default.

Of course, the scroll bars must be displayed for the scroll bar tips to be displayed.

The appearance of the default scroll bar tips is determined by your system settings and other default settings. The appearance is also set by the TextTipAppearance property and the members of the TipAppearance class.

See Also