Class GridCondition
To add the gridcondition in conditionalformat
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.CellGrid
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class GridCondition
Constructors
GridCondition()
Default gridcondition type as Equal
Declaration
public GridCondition()
GridCondition(GridConditionType, Object)
Add the gridcondition with conditintype and condition value
Declaration
public GridCondition(GridConditionType conditiontype, object value)
Parameters
Type | Name | Description |
---|---|---|
GridConditionType | conditiontype | specify the gridconditiontype using GridConditionType enum |
System.Object | value | specify the condition value to check |
GridCondition(GridConditionType, Object, Object)
Add the gridcondition with two condition value when condition type is between
Declaration
public GridCondition(GridConditionType conditiontype, object value1, object value2)
Parameters
Type | Name | Description |
---|---|---|
GridConditionType | conditiontype | specify the gridconditiontype using GridConditionType enum |
System.Object | value1 | condition check value1 |
System.Object | value2 | condition check value2 |
GridCondition(GridTimePeriodType)
create Gridcondition with timeperiodtype when using DatesOccuring conditionformat type
Declaration
public GridCondition(GridTimePeriodType timePeriodType)
Parameters
Type | Name | Description |
---|---|---|
GridTimePeriodType | timePeriodType | Specify timeperiod type by using GridTimePeriodType enum |
Properties
ColumnIndex
Gets or sets the conditionalcormat applyed cell columnindex.
Declaration
public int ColumnIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
ConditionType
Gets or sets the gridcondition type
Declaration
public GridConditionType ConditionType { get; set; }
Property Value
Type |
---|
GridConditionType |
RowIndex
Gets or sets the conditionalformat applyed cell rowindex.
Declaration
public int RowIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
StartColumn
Gets or sets first cell columnindex if same conditon applies to multiple cells.
Declaration
public int StartColumn { get; set; }
Property Value
Type |
---|
System.Int32 |
StartRow
Gets or sets first cell rowindex if same conditon applies to multiple cells.
Declaration
public int StartRow { get; set; }
Property Value
Type |
---|
System.Int32 |
TimePeriodType
Gets or sets the gridtimeperiod type
Declaration
public GridTimePeriodType TimePeriodType { get; set; }
Property Value
Type |
---|
GridTimePeriodType |
Value1
Gets or sets the condition value1.
Declaration
public object Value1 { get; set; }
Property Value
Type | Description |
---|---|
System.Object | condition value1. |
Value2
Gets or sets condition value2
Declaration
public object Value2 { get; set; }
Property Value
Type |
---|
System.Object |