Version

SaveAsXml(Stream) Method

Saves data about the UltraTilePanel to the specified stream in XML (Soap) format.
Syntax
'Declaration
 
Public Overloads Sub SaveAsXml( _
   ByVal stream As Stream _
) 
public void SaveAsXml( 
   Stream stream
)

Parameters

stream
The stream to write to.
Example
The following code demonstrates how to save the UltraTilePanel layout to an XML file.

Imports System.Windows.Forms
Imports Infragistics.Win
Imports Infragistics.Win.Misc

Try
    ' Save the layout of the UltraTilePanel to an XML file.
    Dim stream As New System.IO.FileStream("C:\\TilePanelLayout.xml", System.IO.FileMode.OpenOrCreate)
    Me.UltraTilePanel1.SaveAsXml(stream)
    stream.Close()
Catch
    Debug.WriteLine("Error encountered while saving stream!")
End Try
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.Misc;

try
{
	// Save the layout of the UltraTilePanel to an XML file.
	using ( FileStream stream = new FileStream( "C:\\TilePanelLayout.xml", FileMode.OpenOrCreate ) )
		this.ultraTilePanel1.SaveAsXml( stream );
}
catch
{
	Debug.WriteLine( "Error encountered while saving stream!" );
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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