BCGControlBar Library for .NET
DeserializeVisualStyles Method




A formatter (Binary or Soap).
A stream with serialized GridVisualStyleDef object.
Takes an XML, which was created previously by SerializeVisualStyles and applies its color scheme to the Grid.
Syntax
'Declaration
 
Public Overridable Sub DeserializeVisualStyles( _
   ByVal formatter As IFormatter, _
   ByVal stream As Stream _
) 
'Usage
 
Dim instance As GridControl
Dim formatter As IFormatter
Dim stream As Stream
 
instance.DeserializeVisualStyles(formatter, stream)
public virtual void DeserializeVisualStyles( 
   IFormatter formatter,
   Stream stream
)
public: virtual void DeserializeVisualStyles( 
   IFormatter* formatter,
   Stream* stream
) 
public:
virtual void DeserializeVisualStyles( 
   IFormatter^ formatter,
   Stream^ stream
) 

Parameters

formatter
A formatter (Binary or Soap).
stream
A stream with serialized GridVisualStyleDef object.
Remarks

You can create custom visual styles and pass them around by using the Style Editor in design mode.
The editor generates an XML file which essentially is a serialized GridVisualStyleDef object.
So you just load up a file to a stream and pass it to DeserializeVisualStyle.

This method raises the DeserializeVisualStyle event when deserialization has been completed, which enables you to correct styles for specific grids at runtime.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback