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


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>"
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

Appearance Class
Appearance Members

 

 


Copyright © GrapeCity, inc. All rights reserved.