Spread for ASP.NET 11 Product Documentation
CanSerializeXml Property (StyleInfo)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : CanSerializeXml Property
Gets whether the object in its entirety can be rendered with XML without losing any information.
Syntax
'Declaration
 
Public Overridable ReadOnly Property CanSerializeXml As Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As Boolean
 
value = instance.CanSerializeXml
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.
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; 
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 
See Also

Reference

StyleInfo Class
StyleInfo Members