Spread WinForms 15
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ConditionalStyleItem Class / Clone Method
Example


In This Topic
Clone Method (ConditionalStyleItem)
In This Topic
Creates an exact copy of the current ConditionalStyleItem.
Syntax
'Declaration
 
Public Overridable Function Clone() As Object
 
'Usage
 
Dim instance As ConditionalStyleItem
Dim value As Object
 
value = instance.Clone()

Return Value

A System.Object that is the cloned ConditionalStyleItem.
Example
The following code example shows how to implement the conditional cell style. If the value is less than 5, the cell's background is painted green, if the value is between 5 and 8, the background is yellow, if the value is greater than 8, the background is red. This code example is part of a larger example provided for the ConditionalStyleInfo class.
See Also