FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetClip Method |
Overload | Description |
---|---|
GetClip(Int32,Int32,Int32,Int32) | Gets a tab-delimited string that contains the formatted text in a specified range. |
GetClip(Int32,Int32,Int32,Int32,Boolean) | Gets a tab-delimited string that contains the formatted text in a specified range. |
Compare the values returned from by calling this method with the values returned from calling the GetClipValue method. For example, for date-time cells, this method returns the formatted date and time value; the GetClipValue method returns the serial value for the date and time.
The data in the range of cells is formatted using the IFormatter in the composite style for the cell in the style model.
Use -1 to for row or column to specify all the rows or columns.
This method may create new rows as needed if the row count or column count exceed the existing count.
Besides using this method, you can get or set the data in a cell using various properties of the sheet (SheetView object) or properties of the cell (Cell object). For more information, see Handling Data Using Sheet Methods and Handling Data Using Cell Properties.
Remember that the data may be displayed differently in a cell depending on the cell type. For more information, see Understanding Cell Type Effects on Displaying Data.
FarPoint.Web.Spread.SheetView sv; sv = FpSpread1.ActiveSheetView; sv.SetClip(0, 0, 2, 4, "one\ttwo\tthree\tfour\r\nfive\tsix\tseven\teight"); string s; s = sv.GetClip(0, 0, 2, 4); Response.Write(s);
Dim sv As FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView sv.SetClip(0, 0, 2, 4, "one" + Chr(9) + "two" + Chr(9) + "three" + Chr(9) + "four" + vbCrLf + "five" + Chr(9) + "six" + Chr(9) + "seven" + Chr(9) + "eight") Dim s As String s = sv.GetClip(0, 0, 2, 4) Response.Write(s)
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional