Spread Windows Forms 18
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ConditionalStyleInfo Class
Members


In This Topic
    ConditionalStyleInfo Class
    In This Topic
    Represents a special AppearanceStyleInfo that can customize the style using the specified condition.
    Syntax
    'Declaration
     
    
    Public NotInheritable Class ConditionalStyleInfo 
       Inherits AppearanceStyleInfo
       Implements FarPoint.Win.ICanSerializeXml, FarPoint.Win.ISerializeSupport 
    'Usage
     
    
    Dim instance As ConditionalStyleInfo
    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 ConditionalStyleItem.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