System.Windows.Rect.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            return this.ConvertToString(null, null);
        }

Same methods

Rect::ToString ( IFormatProvider provider ) : string

Usage Example

Example #1
0
 /// <summary>
 /// Save the restore bounds of the window.
 /// </summary>
 /// <param name="filename">The file to store the Rect data.</param>
 /// <param name="restoreBounds">The Rect object.</param>
 static public void SaveWindowBounds(string filename, Rect restoreBounds)
 {
     // Save restore bounds for the next time this window is opened
     IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForAssembly();
     using (IsolatedStorageFileStream stream = new IsolatedStorageFileStream(filename, FileMode.Create, storage))
     using (StreamWriter writer = new StreamWriter(stream))
     {
         // Write restore bounds value to file
         writer.WriteLine(restoreBounds.ToString());
     }
 }
All Usage Examples Of System.Windows.Rect::ToString