FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス : GetCellFromTag メソッド |
'Declaration Public Function GetCellFromTag( _ ByVal cellToStart As Cell, _ ByVal tagToFind As Object _ ) As Cell
'使用法 Dim instance As SheetView Dim cellToStart As Cell Dim tagToFind As Object Dim value As Cell value = instance.GetCellFromTag(cellToStart, tagToFind)
public Cell GetCellFromTag( Cell cellToStart, object tagToFind )
FarPoint.Win.Spread.SheetView sv; FarPoint.Win.Spread.Cell acell; sv = fpSpread1.ActiveSheet; sv.Cells[2, 2].Tag = "MyTag"; acell = sv.GetCellFromTag(null, "MyTag"); MessageBox.Show("The tag is in cell " + acell.Row.ToString() + " ," + acell.Column.ToString());
Dim sv As FarPoint.Win.Spread.SheetView Dim acell As FarPoint.Win.Spread.Cell sv = FpSpread1.ActiveSheet sv.Cells(2, 2).Tag = "MyTag" acell = sv.GetCellFromTag(Nothing, "MyTag") MessageBox.Show("The tag is in cell " & acell.Row.ToString() & " ," & acell.Column.ToString())