MESCIUS SPREAD for Windows Forms 17.0J
Row プロパティ (HyperLinkClickedEventArgs)

エディタがイベントを発生させたセルの行インデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property Row As Integer
public int Row {get;}
次のサンプルコードは、Rowプロパティを取得します。
fpSpread1.ActiveSheet.Columns[1].Width = 145;
fpSpread1.ActiveSheet.Rows[1].Height = 45;
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
hlnkcell.Text = "Click to See Our Web Site";
hlnkcell.Link = "http://spread.grapecity.com";
hlnkcell.LinkArea = new LinkArea(9, 16);
hlnkcell.LinkColor = Color.DarkGreen;
hlnkcell.VisitedLinkColor = Color.Chartreuse;
fpSpread1.ActiveSheet.Cells[1, 1].CellType = hlnkcell;

private void fpSpread1_HyperLinkClicked(object sender, FarPoint.Win.Spread.HyperLinkClickedEventArgs e)
{
listBox1.Items.Add(e.Column);
listBox1.Items.Add(e.Row);
listBox1.Items.Add(e.Link);
}
fpSpread1.ActiveSheet.Columns(1).Width = 145
fpSpread1.ActiveSheet.Rows(1).Height = 45
Dim hlnkcell As New FarPoint.Win.Spread.CellType.HyperLinkCellType()
hlnkcell.Text = "Click to See Our Web Site"
hlnkcell.Link = "http://spread.grapecity.com"
hlnkcell.LinkArea = New LinkArea(9, 16)
hlnkcell.LinkColor = Color.DarkGreen
hlnkcell.VisitedLinkColor = Color.Chartreuse
fpSpread1.ActiveSheet.Cells(1, 1).CellType = hlnkcell

Private Sub fpSpread1_HyperLinkClicked(sender As Object, e As FarPoint.Win.Spread.HyperLinkClickedEventArgs) Handles fpSpread1.HyperLinkClicked
ListBox1.Items.Add(e.Column)
ListBox1.Items.Add(e.Row)
ListBox1.Items.Add(e.Link)
End Sub
参照

HyperLinkClickedEventArgs クラス
HyperLinkClickedEventArgs メンバ

 

 


© MESCIUS inc. All rights reserved.