Spread Windows Forms 11.0 Product Documentation
ConditionalStyleInfo Class
Members 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : ConditionalStyleInfo Class
Represents a special AppearanceStyleInfo that can customize the style using the specified condition.
Object Model
ConditionalStyleInfo ClassConditionalStyleItemCollection ClassConditionalStyleItem Class
Syntax
'Declaration
 
Public NotInheritable Class ConditionalStyleInfo 
   Inherits AppearanceStyleInfo
   Implements FarPoint.Win.ICanSerializeXmlFarPoint.Win.ISerializeSupport 
'Usage
 
Dim instance As ConditionalStyleInfo
public sealed class ConditionalStyleInfo : AppearanceStyleInfo, FarPoint.Win.ICanSerializeXmlFarPoint.Win.ISerializeSupport  
Remarks
The cell can display different styles in different conditions using ConditionalStyleInfo. For example, there is a cell that displays a number. You may want the cell to have a "Red" forecolor when the cell value is negative. You can set a ConditionalStyleInfo to the cell's Cell.Style property. The ConditionalStyleInfo should contain a ConditionalStyleItem whose ConditionalStyleItem.Operator is ConditionalStyleOperator.LessThan, whose ConditionalStyleItem.Value1 is 0, and whose CellStyle is a "Red" forecolor.
Inheritance Hierarchy

System.Object
   GrapeCity.Spreadsheet.Win.BaseStyleInfo
      FarPoint.Win.Spread.StyleInfo
         FarPoint.Win.Spread.AppearanceStyleInfo
            FarPoint.Win.Spread.ConditionalStyleInfo

See Also

Reference

ConditionalStyleInfo Members
FarPoint.Win.Spread Namespace
AppearanceStyleInfo Class
DynamicStyleInfo Class
NamedAppearanceStyleInfo Class
CombinedStyleInfo Class
ConditionalStyleItemCollection Class