GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > SetText Method : SetText(Int32,Int32,SheetArea,String) Method |
'Declaration Public Overloads Sub SetText( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal sheetArea As SheetArea, _ ByVal text As System.String _ )
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | Specified row index is out of range; must be between 0 and the total number of rows. |
System.ArgumentOutOfRangeException | Specified column index is out of range; must be between 0 and the total number of columns. |
gcSpreadSheet1.Sheets[0].SetTag(0, 0, "test"); //gcSpreadSheet1.Sheets[0].SetTag(0, 0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "test"); gcSpreadSheet1.Sheets[0].SetText(1, 1, "testing"); //gcSpreadSheet1.Sheets[0].SetText(1, 1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "Testing"); gcSpreadSheet1.Sheets[0].SetValue(2, 2, "ABC"); //gcSpreadSheet1.Sheets[0].SetValue(2, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "ABC"); //gcSpreadSheet1.Sheets[0].SetValue(2, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "ABC", true);
GcSpreadSheet1.Sheets(0).SetTag(0, 0, "test") 'GcSpreadSheet1.Sheets(0).SetTag(0, 0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "test") GcSpreadSheet1.Sheets(0).SetText(1, 1, "testing") 'GcSpreadSheet1.Sheets(0).SetText(1, 1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "Testing") GcSpreadSheet1.Sheets(0).SetValue(2, 2, "ABC") 'GcSpreadSheet1.Sheets(0).SetValue(2, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "ABC") 'GcSpreadSheet1.Sheets(0).SetValue(2, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, "ABC", True)
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)