SpreadsheetGear 2023
Add(FormatConditionType,TimePeriods) Method


SpreadsheetGear Namespace > IFormatConditions Interface > Add Method : Add(FormatConditionType,TimePeriods) Method
Specifies the type for the new conditional format. Expected value is FormatConditionType.TimePeriod.
Specifies the period operator of the condtional format.
Adds a new conditional format to the represented range with the specified type and period operator.
Syntax
'Declaration
 
Overloads Function Add( _
   ByVal type As FormatConditionType, _
   ByVal periodOperator As TimePeriods _
) As IFormatCondition
'Usage
 
Dim instance As IFormatConditions
Dim type As FormatConditionType
Dim periodOperator As TimePeriods
Dim value As IFormatCondition
 
value = instance.Add(type, periodOperator)

Parameters

type
Specifies the type for the new conditional format. Expected value is FormatConditionType.TimePeriod.
periodOperator
Specifies the period operator of the condtional format.

Return Value

The new conditional format.
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

Reference

IFormatConditions Interface
IFormatConditions Members
Overload List