Spread Windows Forms 11.0 Product Documentation
Clone Method (ConditionalStyleItem)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ConditionalStyleItem Class : Clone Method
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()
public virtual object 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

Reference

ConditionalStyleItem Class
ConditionalStyleItem Members