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


Glossary Item Box

Represents the EncodeValue property (index is 7), which specifies the EncodeValue of the object.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly EncodeValue As AppearanceProperty
Visual Basic (Usage)Copy Code
Dim value As AppearanceProperty
 
value = AppearanceProperty.EncodeValue
C# 
public static readonly AppearanceProperty EncodeValue

Example

This example sets the EncodeValue property.
C#Copy Code
FarPoint.Web.Spread.Appearance appr = new FarPoint.Web.Spread.Appearance();
FarPoint.Web.Spread.Cell acell;
bool bl;
appr.BackColor = System.Drawing.Color.Red;
appr.ForeColor = System.Drawing.Color.White;
appr.EncodeValue = true;
acell = FpSpread1.Cells[0, 0];
acell.BackColor = appr.BackColor;
acell.ForeColor = appr.ForeColor;
FpSpread1.ActiveSheetView.SetValue(0, 0, "AppearanceTest");
bl = appr.IsDefined(FarPoint.Web.Spread.AppearanceProperty.EncodeValue);
FpSpread1.ActiveSheetView.SetValue(1, 1, Convert.ToString(bl));
VB.NETCopy Code
Dim appr As New FarPoint.Web.Spread.Appearance()
Dim acell As FarPoint.Web.Spread.Cell
Dim bl as Boolean
appr.BackColor = System.Drawing.Color.Red
appr.ForeColor = System.Drawing.Color.White
appr.EncodeValue = True
acell = FpSpread1.Cells(0, 0)
acell.BackColor = appr.BackColor
acell.ForeColor = appr.ForeColor
FpSpread1.ActiveSheetView.SetValue(0, 0, "AppearanceTest")
bl = appr.IsDefined(FarPoint.Web.Spread.AppearanceProperty.EncodeValue)
FpSpread1.ActiveSheetView.SetValue(1, 1, Convert.ToString(bl))

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.