Spread Windows Forms 12.0 Product Documentation
Clone Method (ConditionalStyleItem)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ConditionalStyleItem Class : Clone Method
Creates an exact copy of the current ConditionalStyleItem.
Public Overridable Function Clone() As Object
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.
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


ConditionalStyleItem Class
ConditionalStyleItem Members