Spread for ASP.NET 7.0 Product Documentation
CanSerializeXml Property
See Also  Example Support Options
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 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.