[]
        
(Showing Draft Content)

FarPoint.Win.Spread.ConditionalStyleItem.-ctor

ConditionalStyleItem Constructor

ConditionalStyleItem(AppearanceStyleInfo, ConditionalStyleOperator)

Initializes a new instance of the ConditionalStyleItem class.

Declaration
public ConditionalStyleItem(AppearanceStyleInfo style, ConditionalStyleOperator op)
Public Sub New(style As AppearanceStyleInfo, op As ConditionalStyleOperator)
Parameters
Type Name Description
AppearanceStyleInfo style

A CellStyle that is applied to the Cell when the condition matches.

ConditionalStyleOperator op

A ConditionalStyleOperator value that the Value should match.

Exceptions
Type Condition
ArgumentNullException

The style is null.

InvalidEnumArgumentException

The specified value of op is not a valid ConditionalStyleOperator value.

ConditionalStyleItem(AppearanceStyleInfo, ConditionalStyleOperator, bool)

Initializes a new instance of the ConditionalStyleItem class.

Declaration
public ConditionalStyleItem(AppearanceStyleInfo style, ConditionalStyleOperator op, bool ignoreCase)
Public Sub New(style As AppearanceStyleInfo, op As ConditionalStyleOperator, ignoreCase As Boolean)
Parameters
Type Name Description
AppearanceStyleInfo style

A CellStyle that is applied to the Cell when the condition matches.

ConditionalStyleOperator op

A ConditionalStyleOperator value that the Value should match.

bool ignoreCase

true if the comparison should ignore the case; otherwise, false.

Exceptions
Type Condition
ArgumentNullException

The style is null.

InvalidEnumArgumentException

The specified value of op is not a valid ConditionalStyleOperator value.

ConditionalStyleItem(AppearanceStyleInfo, ConditionalStyleOperator, object)

Initializes a new instance of the ConditionalStyleItem class.

Declaration
public ConditionalStyleItem(AppearanceStyleInfo style, ConditionalStyleOperator op, object value1)
Public Sub New(style As AppearanceStyleInfo, op As ConditionalStyleOperator, value1 As Object)
Parameters
Type Name Description
AppearanceStyleInfo style

A CellStyle that is applied to the Cell when the condition matches.

ConditionalStyleOperator op

A ConditionalStyleOperator value that the Value should match.

object value1

A object that indicates the operation value when op needs several arguments.

Exceptions
Type Condition
ArgumentNullException

The style is null.

InvalidEnumArgumentException

The specified value of op is not a valid ConditionalStyleOperator value.

ConditionalStyleItem(AppearanceStyleInfo, ConditionalStyleOperator, object, bool)

Initializes a new instance of the ConditionalStyleItem class.

Declaration
public ConditionalStyleItem(AppearanceStyleInfo style, ConditionalStyleOperator op, object value1, bool ignoreCase)
Public Sub New(style As AppearanceStyleInfo, op As ConditionalStyleOperator, value1 As Object, ignoreCase As Boolean)
Parameters
Type Name Description
AppearanceStyleInfo style

A CellStyle that is applied to the Cell when the condition matches.

ConditionalStyleOperator op

A ConditionalStyleOperator value that the Value should match.

object value1

A object that indicates the operation value when op needs several arguments.

bool ignoreCase

true if the comparison ignores the case; otherwise, false

Exceptions
Type Condition
ArgumentNullException

The style is null.

InvalidEnumArgumentException

The specified value of op is not a valid ConditionalStyleOperator value.

ConditionalStyleItem(AppearanceStyleInfo, ConditionalStyleOperator, object, object)

Initializes a new instance of the ConditionalStyleItem class.

Declaration
public ConditionalStyleItem(AppearanceStyleInfo style, ConditionalStyleOperator op, object value1, object value2)
Public Sub New(style As AppearanceStyleInfo, op As ConditionalStyleOperator, value1 As Object, value2 As Object)
Parameters
Type Name Description
AppearanceStyleInfo style

A CellStyle that is applied to the Cell when the condition matches.

ConditionalStyleOperator op

A ConditionalStyleOperator value that the Value should match.

object value1

A object that indicates the first operation value when op needs several arguments.

object value2

A object that indicates the second operation value when op needs several arguments.

Exceptions
Type Condition
ArgumentNullException

The style is null.

InvalidEnumArgumentException

The specified value of op is not a valid ConditionalStyleOperator value.

ConditionalStyleItem(AppearanceStyleInfo, ConditionalStyleOperator, object, object, bool)

Initializes a new instance of the ConditionalStyleItem class.

Declaration
public ConditionalStyleItem(AppearanceStyleInfo style, ConditionalStyleOperator op, object value1, object value2, bool ignoreCase)
Public Sub New(style As AppearanceStyleInfo, op As ConditionalStyleOperator, value1 As Object, value2 As Object, ignoreCase As Boolean)
Parameters
Type Name Description
AppearanceStyleInfo style

A CellStyle that is applied to the Cell when the condition matches.

ConditionalStyleOperator op

A ConditionalStyleOperator value that the Value should match.

object value1

A object that indicates the first operation value when op needs several arguments.

object value2

A object that indicates the second operation value when op needs several arguments.

bool ignoreCase

true if the comparison should ignore the case; otherwise, false.

Exceptions
Type Condition
ArgumentNullException

The style is null.

InvalidEnumArgumentException

The specified value of op is not a valid ConditionalStyleOperator value.

ConditionalStyleItem(SerializationInfo, StreamingContext)

Initializes a new instance of this class.

Declaration
public ConditionalStyleItem(SerializationInfo info, StreamingContext context)
Public Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
Type Name Description
SerializationInfo info

The information.

StreamingContext context

The context.