Spread for ASP.NET 11 Product Documentation
EncodeValue Property (Appearance)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Appearance Class : EncodeValue Property
Gets or sets whether the renderer encodes the values from the data model and the user's input using the HtmlEncode method.
Syntax
'Declaration
 
Public Property EncodeValue As Boolean
'Usage
 
Dim instance As Appearance
Dim value As Boolean
 
instance.EncodeValue = value
 
value = instance.EncodeValue
public bool EncodeValue {get; set;}
Example
This example sets the EncodeValue property.
FarPoint.Web.Spread.Appearance appr = new FarPoint.Web.Spread.Appearance();
appr.BackColor = System.Drawing.Color.Red;
appr.EncodeValue = false;
FarPoint.Web.Spread.Cell acell;
acell = FpSpread1.Cells[0, 0];
acell.BackColor = appr.BackColor;
acell.EncodeValue = appr.EncodeValue;
acell.Value = "Hello<B>World</B>";
Dim appr As New FarPoint.Web.Spread.Appearance()
appr.BackColor = System.Drawing.Color.Red
appr.EncodeValue = False
Dim acell As FarPoint.Web.Spread.Cell
acell = FpSpread1.Cells(0, 0)
acell.BackColor = appr.BackColor
acell.EncodeValue = appr.EncodeValue
acell.Value = "Hello<B>World</B>"
See Also

Reference

Appearance Class
Appearance Members