Spread for ASP.NET 8.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 Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Appearance Class
Appearance Members

 

 


Copyright © GrapeCity, inc. All rights reserved.