Spread Windows Forms 6.0 Product Documentation
GetValidConditionalFormat Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetStyleModel Class : GetValidConditionalFormat Method


row
Row index of the cell in the model
column
Column index of the cell in the model
value
Object containing the cell value
dm
ISheetDataModel object containing the sheet data model

Glossary Item Box

Returns the style information for the first valid condition for the cell at the specified row and column in the model.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetValidConditionalFormat( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal value As Object, _
   ByVal dm As ISheetDataModel _
) As NamedStyle
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetStyleModel
Dim row As Integer
Dim column As Integer
Dim value As Object
Dim dm As ISheetDataModel
Dim value As NamedStyle
 
value = instance.GetValidConditionalFormat(row, column, value, dm)
C# 
public virtual NamedStyle GetValidConditionalFormat( 
   int row,
   int column,
   object value,
   ISheetDataModel dm
)

Parameters

row
Row index of the cell in the model
column
Column index of the cell in the model
value
Object containing the cell value
dm
ISheetDataModel object containing the sheet data model

Return Value

NamedStyle object containing the style settings

Remarks

This method reads through the list of conditional formats for a cell at the specified row and column, and returns the format (the style information) for the first condition that is satisfied.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.