Spread Windows Forms 7.0 Product Documentation
Y Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FilterBarEventArgs Class : Y Property


Glossary Item Box

Gets the y-coordinate of the pointer position.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Y As Integer
Visual Basic (Usage)Copy Code
Dim instance As FilterBarEventArgs
Dim value As Integer
 
value = instance.Y
C# 
public int Y {get;}

Example

This example uses the FilterBarClick event.
C#Copy Code
 fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;

private void fpSpread1_FilterBarClick(object sender, FarPoint.Win.Spread.FilterBarEventArgs e)
        {
            listBox1.Items.Add(e.Button.ToString());
            listBox1.Items.Add(e.Cancel.ToString());
            listBox1.Items.Add(e.Column.ToString());
            listBox1.Items.Add(e.View.ToString());
            listBox1.Items.Add(e.X.ToString());
            listBox1.Items.Add(e.Y.ToString());
        }
VB.NETCopy Code
FpSpread1.Sheets(0).AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar

Private Sub FpSpread1_FilterBarClick(ByVal sender As System.Object, ByVal e As FarPoint.Win.Spread.FilterBarEventArgs) Handles FpSpread1.FilterBarClick
        ListBox1.Items.Add(e.Button.ToString())
        ListBox1.Items.Add(e.Cancel.ToString())
        ListBox1.Items.Add(e.Column.ToString())
        ListBox1.Items.Add(e.View.ToString())
        ListBox1.Items.Add(e.X.ToString())
        ListBox1.Items.Add(e.Y.ToString())
    End Sub

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.