GrapeCity MultiRow Windows Forms Documentation
ScrollTipTextNeededEventArgs Class
Members  Example 


Provides data for the GcMultiRow.ScrollTipTextNeeded event of the GcMultiRow control.
Syntax
Public Class ScrollTipTextNeededEventArgs 
   Inherits System.EventArgs
public class ScrollTipTextNeededEventArgs : System.EventArgs 
Remarks

The user can use this class to customize the scroll tip text of the cell. When GcMultiRow gets the scroll tip text, it raises the GcMultiRow.ScrollTipTextNeeded event. The user can get this event and set a new scroll tip using this class.

The initial value of ScrollTipText is the topmost scrolling row index plus 1 in the vertical direction. The initial value of ScrollTipText in the horizontal direction is scroll bar value.

Example
The following code example shows how to customize the scroll tooltip when dragging the scroll bar to scroll. This code example is part of a larger example provided for the GcMultiRow.ShowScrollTip property.
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
Inheritance Hierarchy

System.Object
   System.EventArgs
      GrapeCity.Win.MultiRow.ScrollTipTextNeededEventArgs

Requirements

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

See Also

Reference

ScrollTipTextNeededEventArgs Members
GrapeCity.Win.MultiRow Namespace
ScrollTipTextNeeded Event

 

 


Copyright © GrapeCity, inc. All rights reserved.