GrapeCity MultiRow Windows Forms Documentation
HorizontalScrollTipAlignment Property
Example 


Gets or sets the HorizontalScrollTipAlignment enumeration that indicates the scroll tip position.
Syntax
<FeatureAttribute(Name="Scroll", Version="v5.0")>
<DefaultValueAttribute()>
<SRCategoryAttribute("Appearance")>
<LocalizableAttribute(True)>
<SRDescriptionAttribute("Indicates the alignment of the ToolTip when dragging the thumb button of the horizontal scroll bar.")>
Public Property HorizontalScrollTipAlignment As HorizontalScrollTipAlignment
Dim instance As GcMultiRow
Dim value As HorizontalScrollTipAlignment
 
instance.HorizontalScrollTipAlignment = value
 
value = instance.HorizontalScrollTipAlignment
[Feature(Name="Scroll", Version="v5.0")]
[DefaultValue()]
[SRCategory("Appearance")]
[Localizable(true)]
[SRDescription("Indicates the alignment of the ToolTip when dragging the thumb button of the horizontal scroll bar.")]
public HorizontalScrollTipAlignment HorizontalScrollTipAlignment {get; set;}

Property Value

One of the HorizontalScrollTipAlignment values that indicates the scroll tip position. The default is HorizontalScrollTipAlignment.Default.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not one of the HorizontalScrollTipAlignment values.
Remarks
Set the ShowScrollTip property to System.Windows.Forms.ScrollBars.Both or System.Windows.Forms.ScrollBars.Horizontal before using this property.
Example
The following code example shows how to customize scroll tooltips when dragging the scroll bar. This code example is part of a larger example provided for the ShowScrollTip property.
public ScrollDemo()
        {
            this.Text = "Scroll Tip Demo";

            gcMultiRow.Dock = DockStyle.Fill;
            gcMultiRow.ShowScrollTip = ScrollBars.Both;
            gcMultiRow.Template = Template.CreateGridTemplate(10);

            gcMultiRow.HorizontalScrollTipAlignment = HorizontalScrollTipAlignment.Right;
            gcMultiRow.VerticalScrollTipAlignment = VerticalScrollTipAlignment.Bottom;

            gcMultiRow.RowCount = 100;
            this.gcMultiRow.ScrollTipTextNeeded += new EventHandler<ScrollTipTextNeededEventArgs>(gcMultiRow_ScrollTipTextNeeded);

            this.Controls.Add(gcMultiRow);
        }
Public Sub New()
        Me.Text = "Scroll Tip Demo"

        gcMultiRow.Dock = DockStyle.Fill
        gcMultiRow.ShowScrollTip = ScrollBars.Both

        gcMultiRow.HorizontalScrollTipAlignment = HorizontalScrollTipAlignment.Right
        gcMultiRow.VerticalScrollTipAlignment = VerticalScrollTipAlignment.Bottom

        gcMultiRow.Template = Template.CreateGridTemplate(10)
        gcMultiRow.RowCount = 100

        Me.Controls.Add(gcMultiRow)
    End Sub
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

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.