バージョン

LoadFromXml(String) メソッド

シンタックス
'宣言
 
Public Overloads Sub LoadFromXml( _
   ByVal filename As String _
) 
public void LoadFromXml( 
   string filename
)

パラメータ

filename
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinListView

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Me.ultraListView1.Reset();

        If System.IO.File.Exists("UltraListView.xml") Then
            Me.ultraListView1.LoadFromXml("UltraListView.xml")
        Else
            Me.ultraListView1.LoadFromBinary("UltraListView.bin")
        End If
	 End Sub


    Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
        If saveAsXml Then
            Me.ultraListView1.SaveAsXml("UltraListView.xml")
        Else
            Me.ultraListView1.SaveAsBinary("UltraListView.bin")
        End If
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinListView;
using System.Diagnostics;
using System.IO;

		private void Form1_Load(object sender, System.EventArgs e)
		{
			this.ultraListView1.Reset();

			if ( File.Exists("UltraListView.xml") )
				this.ultraListView1.LoadFromXml( "UltraListView.xml" );
			else
			if ( File.Exists("UltraListView.bin") )
				this.ultraListView1.LoadFromBinary( "UltraListView.bin" );

		}


		private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			if ( this.saveAsXml )
				this.ultraListView1.SaveAsXml( "UltraListView.xml" );
			else
				this.ultraListView1.SaveAsBinary( "UltraListView.bin" );
		}
参照