Spread for ASP.NET 11 Product Documentation
UngroupSparkline(String) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > UngroupSparkline Method : UngroupSparkline(String) Method
The location reference.
Ungroups the sparkline.
Syntax
'Declaration
 
Public Overloads Sub UngroupSparkline( _
   ByVal locationRef As String _
) 
'Usage
 
Dim instance As SheetView
Dim locationRef As String
 
instance.UngroupSparkline(locationRef)
public void UngroupSparkline( 
   string locationRef
)

Parameters

locationRef
The location reference.
Example
This example uses the UngroupSparkline method.
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView();

protected void Page_Load(object sender, System.EventArgs e)
{
FarPoint.Web.Spread.Chart.SheetCellRange test = new FarPoint.Web.Spread.Chart.SheetCellRange(sv, 0, 0, 2, 4);
FarPoint.Web.Spread.Model.CellRange data2 = new FarPoint.Web.Spread.Model.CellRange(0, 5, 2, 1);
FarPoint.Web.Spread.ExcelSparklineSetting ex = new FarPoint.Web.Spread.ExcelSparklineSetting();
ex.ShowFirst = true;
ex.FirstMarkerColor = Color.Violet;
fpSpread1.Sheets[0] = sv;
fpSpread1.Sheets[0].RowCount = 10;
fpSpread1.Sheets[0].ColumnCount = 10;
sv.Cells[0, 0].Value = 2;
sv.Cells[0, 1].Value = 5;
sv.Cells[0, 2].Value = 4;
sv.Cells[0, 3].Value = -1;
sv.Cells[0, 4].Value = 3;
sv.Cells[1, 0].Value = 3;
sv.Cells[1, 1].Value = 1;
sv.Cells[1, 2].Value = 2;
sv.Cells[1, 3].Value = -1;
sv.Cells[1, 4].Value = 5;

sv.Cells[2, 0].Value = 3;
sv.Cells[2, 1].Value = 1;
sv.Cells[2, 2].Value = 2;
sv.Cells[2, 3].Value = -1;
sv.Cells[2, 4].Value = 5;
fpSpread1.Sheets[0].AddSparkline(test, data2, FarPoint.Web.Spread.SparklineType.Column, ex);

FarPoint.Web.Spread.Chart.SheetCellRange test1 = new FarPoint.Web.Spread.Chart.SheetCellRange(sv, 2, 0, 1, 4);
FarPoint.Web.Spread.Model.CellRange data3 = new FarPoint.Web.Spread.Model.CellRange(2, 5, 1, 1);
FarPoint.Web.Spread.ExcelSparklineSetting ex1 = new FarPoint.Web.Spread.ExcelSparklineSetting();
ex1.FirstMarkerColor = Color.Red;
ex1.ShowFirst = true;
fpSpread1.Sheets[0].AddSparkline(test1, data3, FarPoint.Web.Spread.SparklineType.Column, ex1);
sv.Cells[4, 0].Value = 2;
sv.Cells[4, 1].Value = 1;
sv.Cells[5, 0].Value = 5;
sv.Cells[5, 1].Value = 3;
FarPoint.Web.Spread.Chart.SheetCellRange newdata = new FarPoint.Web.Spread.Chart.SheetCellRange(sv, 4, 0, 2, 2);
FarPoint.Web.Spread.Model.CellRange newlocation = new FarPoint.Web.Spread.Model.CellRange(6, 0, 1, 2);
FarPoint.Web.Spread.ExcelSparklineSetting ex2 = new FarPoint.Web.Spread.ExcelSparklineSetting();
fpSpread1.Sheets[0].AddSquareSparkline(newdata, newlocation, FarPoint.Web.Spread.SparklineType.Column, ex2, true);
}

protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
        {
fpSpread1.Sheets[0].GroupSparkline(new FarPoint.Web.Spread.Model.CellRange[] { new FarPoint.Web.Spread.Model.CellRange(0, 5, 3, 1) }, FarPoint.Web.Spread.SparklineType.Column);
fpSpread1.Sheets[0].UngroupSparkline("F1:F3");
//fpSpread1.Sheets[0].UngroupSparkline(new FarPoint.Web.Spread.Model.CellRange(0, 5, 3, 1));
        }
Dim sv As New FarPoint.Web.Spread.SheetView()
  
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim data2 As New FarPoint.Web.Spread.Chart.SheetCellRange(sv, 0, 0, 2, 4)
Dim test As New FarPoint.Web.Spread.Model.CellRange(0, 5, 2, 1)

Dim ex As New FarPoint.Web.Spread.ExcelSparklineSetting()
ex.ShowFirst = True
ex.FirstMarkerColor = Color.Violet
FpSpread1.Sheets(0) = sv
FpSpread1.Sheets(0).RowCount = 10
FpSpread1.Sheets(0).ColumnCount = 10
sv.Cells(0, 0).Value = 2
sv.Cells(0, 1).Value = 5
sv.Cells(0, 2).Value = 4
sv.Cells(0, 3).Value = -1
sv.Cells(0, 4).Value = 3
sv.Cells(1, 0).Value = 3
sv.Cells(1, 1).Value = 1
sv.Cells(1, 2).Value = 2
sv.Cells(1, 3).Value = -1
sv.Cells(1, 4).Value = 5

sv.Cells(2, 0).Value = 3
sv.Cells(2, 1).Value = 1
sv.Cells(2, 2).Value = 2
sv.Cells(2, 3).Value = -1
sv.Cells(2, 4).Value = 5
FpSpread1.Sheets(0).AddSparkline(data2, test, FarPoint.Web.Spread.SparklineType.Column, ex)

Dim data3 = New FarPoint.Web.Spread.Chart.SheetCellRange(sv, 2, 0, 1, 4)
Dim test1 = New FarPoint.Web.Spread.Model.CellRange(2, 5, 1, 1)
Dim ex1 As New FarPoint.Web.Spread.ExcelSparklineSetting()
ex1.FirstMarkerColor = Color.Red
ex1.ShowFirst = True
FpSpread1.Sheets(0).AddSparkline(data3, test1, FarPoint.Web.Spread.SparklineType.Column, ex1)

sv.Cells(4, 0).Value = 2
sv.Cells(4, 1).Value = 1
sv.Cells(5, 0).Value = 5
sv.Cells(5, 1).Value = 3
Dim newdata = New FarPoint.Web.Spread.Chart.SheetCellRange(sv, 4, 0, 2, 2)
Dim newlocation = New FarPoint.Web.Spread.Model.CellRange(6, 0, 1, 2)
Dim ex2 As New FarPoint.Web.Spread.ExcelSparklineSetting()
FpSpread1.Sheets(0).AddSquareSparkline(newdata, newlocation, FarPoint.Web.Spread.SparklineType.Column, ex2, True)
End Sub

    Protected Sub FpSpread1_ButtonCommand(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles FpSpread1.ButtonCommand

FpSpread1.Sheets(0).GroupSparkline(New FarPoint.Web.Spread.Model.CellRange() {New FarPoint.Web.Spread.Model.CellRange(0, 5, 3, 1)}, FarPoint.Web.Spread.SparklineType.Column)
FpSpread1.Sheets(0).UngroupSparkline("F1:F3")
'or FpSpread1.Sheets(0).UngroupSparkline(New FarPoint.Web.Spread.Model.CellRange(0, 5, 3, 1))
    End Sub
See Also

Reference

SheetView Class
SheetView Members
Overload List