Spread ASP.NET 6.0 Product Documentation
CanSerializeXml Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : CanSerializeXml Property


Glossary Item Box

Gets whether the object in its entirety can be rendered with XML without losing any information.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property CanSerializeXml As Boolean
Visual Basic (Usage)Copy Code
Dim instance As StyleInfo
Dim value As Boolean
 
value = instance.CanSerializeXml
C# 
public virtual bool CanSerializeXml {get;}

Property Value

Boolean: true if the style can be persisted; false otherwise

Remarks

This property is available at run time only.

Example

This example returns a value indicating whether the style can be persisted in XML.
C#Copy Code
FarPoint.Web.Spread.StyleInfo copy = new FarPoint.Web.Spread.StyleInfo("HeaderDefault");
copy.Border = new FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.DarkBlue);
FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo(copy);
bool b;
b = si.CanSerializeXml();
Response.Write("The style can be persisted is " + b.ToString());
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = si; 
Visual BasicCopy Code
Dim copy As New FarPoint.Web.Spread.StyleInfo("HeaderDefault")
copy.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.DarkBlue)
Dim si As New FarPoint.Web.Spread.StyleInfo(copy)
Dim b As Boolean
b = si.CanSerializeXml()
Response.Write("The style can be persisted is " & b.ToString())
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = si 

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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.