Spread ASP.NET 6.0 Product Documentation
GetClip Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetClip Method


Glossary Item Box

Gets a tab-delimited string containing the formatted text in a specified range.

Overload List

OverloadDescription
GetClip(Int32,Int32,Int32,Int32)Gets a tab-delimited string containing the formatted text in a specified range.  
GetClip(Int32,Int32,Int32,Int32,Boolean)Gets a tab-delimited string containing the formatted text in a specified range.  

Remarks

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.

Example

This example gets a tab-delimited string containing the formatted text in a range.
C#Copy Code
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);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.