GrapeCity.Win.MultiRow Namespace > GcMultiRow Class : ScrollTipTextNeeded Event |
<SRCategoryAttribute("Behavior")> <SRDescriptionAttribute("Occurs when the ShowScrollTip property of the GcMultiRow control is not none and the scroll ToolTip is being shown.")> Public Event ScrollTipTextNeeded As EventHandler(Of ScrollTipTextNeededEventArgs)
Dim instance As GcMultiRow Dim handler As EventHandler(Of ScrollTipTextNeededEventArgs) AddHandler instance.ScrollTipTextNeeded, handler
[SRCategory("Behavior")] [SRDescription("Occurs when the ShowScrollTip property of the GcMultiRow control is not none and the scroll ToolTip is being shown.")] public event EventHandler<ScrollTipTextNeededEventArgs> ScrollTipTextNeeded
The event handler receives an argument of type ScrollTipTextNeededEventArgs containing data related to this event. The following ScrollTipTextNeededEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Direction | Gets a value that indicates the scroll direction. |
ScrollBarValue | Gets a value that indicates the scroll bars current value. Units are in pixels. |
ScrollRowIndex | Gets a value that indicates the index of the first visible row in the screen. |
ScrollTipText | Gets or sets the text shown in the scroll tip. |
void gcMultiRow_ScrollTipTextNeeded(object sender, ScrollTipTextNeededEventArgs e) { if (e.Direction == Orientation.Horizontal) { e.ScrollTipText = "Scroll to " + e.ScrollBarValue.ToString() + " pixel"; } else { e.ScrollTipText = "Scroll to " + e.ScrollRowIndex.ToString() + " row"; } }
Private Sub gcMultiRow_ScrollTipTextNeeded(ByVal sender As Object, ByVal e As ScrollTipTextNeededEventArgs) Handles gcMultiRow.ScrollTipTextNeeded If e.Direction = Orientation.Horizontal Then e.ScrollTipText = "Scroll to " + e.ScrollBarValue.ToString() + " pixel" Else e.ScrollTipText = "Scroll to " + e.ScrollRowIndex.ToString() + " row" End If End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2