Spread Windows Forms 9.0 Product Documentation
Formula Property (TextConditionalFormattingRule)
Example 


Gets or sets the formula.
Syntax
'Declaration
 
Public Property Formula As String
'Usage
 
Dim instance As TextConditionalFormattingRule
Dim value As String
 
instance.Formula = value
 
value = instance.Formula
public string Formula {get; set;}

Property Value

The formula.
Example
This example sets the Formula property.
FarPoint.Win.Spread.TextConditionalFormattingRule text = new FarPoint.Win.Spread.TextConditionalFormattingRule(FarPoint.Win.Spread.TextConditionOperator.Contains, "aaa");
// Cell (1,1) must contain the text you type in C1
text.Formula = "=C1";
text.BackColor = Color.Red;
fpSpread1.ActiveSheet.SetConditionalFormatting(1, 1, text);
Dim Text As New FarPoint.Win.Spread.TextConditionalFormattingRule(FarPoint.Win.Spread.TextConditionOperator.Contains, "aaa")
' Cell (1,1) must contain the text you type in C1
Text.Formula = "=C1"
Text.BackColor = Color.Red
FpSpread1.ActiveSheet.SetConditionalFormatting(1, 1, Text)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

TextConditionalFormattingRule Class
TextConditionalFormattingRule Members

 

 


Copyright © GrapeCity, inc. All rights reserved.