[]
        
(Showing Draft Content)

FarPoint.Win.Spread.ConditionalStyleInfo

ConditionalStyleInfo Class

Represents a special AppearanceStyleInfo that can customize the style using the specified condition.

Inheritance
ConditionalStyleInfo
Namespace: FarPoint.Win.Spread
Assembly: FarPoint.Win.Spread.dll
Syntax
[TypeConverter(typeof(_abk))]
public sealed class ConditionalStyleInfo : AppearanceStyleInfo, ICanSerializeXml, IComparable, IComparable<StyleInfo>, ICloneable, ISerializable, ISerializeSupport, IDeserializationCallback
<TypeConverter(GetType(_abk))>
Public NotInheritable Class ConditionalStyleInfo
    Inherits AppearanceStyleInfo
    Implements ICanSerializeXml, IComparable, IComparable(Of StyleInfo), ICloneable, ISerializable, ISerializeSupport, IDeserializationCallback
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 Operator is ConditionalStyleOperator.LessThan, whose Value1 is 0, and whose CellStyle is a "Red" forecolor.

Constructors

Name Description
ConditionalStyleInfo()

Initializes a new instance of the ConditionalStyleInfo class.

ConditionalStyleInfo(IEnumerable<ConditionalStyleItem>)

Initializes a new instance of the ConditionalStyleInfo class.

ConditionalStyleInfo(SerializationInfo, StreamingContext)

Initializes a new instance of this class.

Properties

Name Description
Items

Gets a ConditionalStyleItem collection that indicates the conditions used to customize the CellStyle object.

Methods

Name Description
Clone()

Creates a new ConditionalStyleInfo that is a copy of the current ConditionalStyleInfo.

Deserialize(XmlNodeReader)

Loads the object from XML.

GetActualStyle(DynamicStyleInfoContext)

Gets the actual CellStyle

GetObjectData(SerializationInfo, StreamingContext)

Gets the object data.

OnDeserialization(object)

Handles logic after completing deserialization.

Serialize(XmlTextWriter)

Saves the object to XML.

ToString()

Returns a string that represents the ConditionalStyleInfo.

See Also