Gets or sets whether the Spread component 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 FpSpread
Dim value As Boolean
instance.EncodeValue = value
value = instance.EncodeValue |
C# | |
---|
public bool EncodeValue {get; set;} |
Property Value
true to encode the values; otherwise
false
Remarks
Example
This example shows how to turn off encoding to allow HTML tags.
C# | Copy Code |
---|
FpSpread1.EncodeValue=false;
FpSpread1.Sheets[0].Cells[1,1].Value="Hello<B>World</B>.Y=X<SUP>2</SUP>";
FpSpread1.Sheets[0].Cells[2,1].Value="<AHREF='http://www.fpoint.com/'>FarPoint</A>-creatorsofSpread"
FpSpread1.Sheets[0].Cells[3,1].Value="Break here<BR>to anew line"
FpSpread1.Sheets[0].Cells[4,1].Value="<AHREF=""mailto:fpdocs@fpoint.com">Senddocfeedback</a>." |
Visual Basic | Copy Code |
---|
FpSpread1.EncodeValue=False
FpSpread1.Sheets(0).Cells(1,1).Value="Hello<B>World</B>"
FpSpread1.Sheets(0).Cells(2,1).Value="<AHREF='http://www.fpoint.com/'>FarPoint</a>-creatorsofSpread"
FpSpread1.Sheets(0).Cells(3,1).Value="Break here<BR>to anew line"
FpSpread1.Sheets(0).Cells(4,1).Value="<AHREF=""mailto:fpdocs@fpoint.com">Senddocfeedback</a>." |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also