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


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 
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.