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
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 Basic | Copy 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