Spread for ASP.NET 11 Product Documentation
GetConditionalFormatting(Int32,Int32) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > GetConditionalFormatting Method : GetConditionalFormatting(Int32,Int32) Method
The row index
The column index
Gets all the conditional formatting in the specified cell.
Syntax
'Declaration
 
Public Overloads Function GetConditionalFormatting( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As ConditionalFormatting()
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value() As ConditionalFormatting
 
value = instance.GetConditionalFormatting(row, column)
public ConditionalFormatting[] GetConditionalFormatting( 
   int row,
   int column
)

Parameters

row
The row index
column
The column index
Example
This example uses the GetConditionalFormatting method.
FpSpread1.Sheets[0].Cells[0, 0].Value = 3;
FpSpread1.Sheets[0].Cells[1, 0].Value = 2;
FpSpread1.Sheets[0].Cells[1, 1].Value = 10;
FpSpread1.Sheets[0].Cells[0, 2].Value = 1;
FarPoint.Web.Spread.Model.CellRange celRange1 = new FarPoint.Web.Spread.Model.CellRange(0, 0, 3, 3);
FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule rule = new FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule(Color.Aqua, Color.Bisque, Color.BlueViolet);
FpSpread1.Sheets[0].SetConditionalFormatting(new FarPoint.Web.Spread.Model.CellRange[] { celRange1 }, rule);
TextBox1.Text = FpSpread1.Sheets[0].GetConditionalFormatting(0,0).ToString();
FpSpread1.Sheets(0).Cells(0, 0).Value = 3
FpSpread1.Sheets(0).Cells(1, 0).Value = 2
FpSpread1.Sheets(0).Cells(1, 1).Value = 10
FpSpread1.Sheets(0).Cells(0, 2).Value = 1
Dim celRange1 As New FarPoint.Web.Spread.Model.CellRange(0, 0, 3, 3)
Dim Rule As New FarPoint.Web.Spread.ThreeColorScaleConditionalFormattingRule(Color.Aqua, Color.Bisque, Color.BlueViolet)
FpSpread1.Sheets(0).SetConditionalFormatting(New FarPoint.Web.Spread.Model.CellRange() {celRange1}, Rule)
TextBox1.Text = FpSpread1.Sheets(0).GetConditionalFormatting(0, 0).ToString()
See Also

Reference

SheetView Class
SheetView Members
Overload List