Spread for ASP.NET 11 Product Documentation
Text Property (Group)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > Group Class : Text Property
Gets or sets the text string for the group.
Syntax
'Declaration
 
Public Property Text As String
'Usage
 
Dim instance As Group
Dim value As String
 
instance.Text = value
 
value = instance.Text
public string Text {get; set;}

Property Value

String containing the text
Example
This example returns the text.
FarPoint.Web.Spread.Model.GroupDataModel gm = new FarPoint.Web.Spread.Model.GroupDataModel(FpSpread1.ActiveSheetView.DataModel);
FarPoint.Web.Spread.SortInfo[] sort = new FarPoint.Web.Spread.SortInfo[1];
sort[0] = new FarPoint.Web.Spread.SortInfo(0, true);
gm.Group(sort, System.Collections.Comparer.Default);
FpSpread1.ActiveSheetView.DataModel = gm;

FarPoint.Web.Spread.Model.Group dg = new FarPoint.Web.Spread.Model.Group(gm, (FarPoint.Web.Spread.Model.Group)gm.Groups[0], "Harris" 0, true);
String s = dg.Text;
String msg = s;
Response.Write("alert('" + msg + "')");
Dim gm As New FarPoint.Web.Spread.Model.GroupDataModel(FpSpread1.ActiveSheetView.DataModel)
Dim sort(0) As FarPoint.Web.Spread.SortInfo
sort(0) = New FarPoint.Web.Spread.SortInfo(0, True)
gm.Group(sort)
FpSpread1.ActiveSheetView.DataModel = gm

Dim dg As New FarPoint.Web.Spread.Model.Group(gm, gm.Groups(0), "Harris" 0, True)
Dim s As String = dg.Text
Dim msg As String = s
Response.Write("alert('" & msg & "')")
See Also

Reference

Group Class
Group Members