Spread for ASP.NET 7.0 Product Documentation
EncodeValue Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Appearance Class : EncodeValue Property


Glossary Item Box

Gets or sets whether the renderer encodes the values from the data model and the user's input using the HtmlEncode method.

Syntax

Visual Basic (Declaration) 
Public Property EncodeValue As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Appearance
Dim value As Boolean
 
instance.EncodeValue = value
 
value = instance.EncodeValue
C# 
public bool EncodeValue {get; set;}

Example

This example sets the EncodeValue property.
C#Copy Code
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>";
VB.NETCopy Code
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.