OpenTK.Platform.Windows.WinWindowInfo.ToString C# (CSharp) Method

ToString() public method

Returns a System.String that represents the current window.
public ToString ( ) : string
return string
        public override string ToString()
        {
            return String.Format("Windows.WindowInfo: Handle {0}, Parent ({1})",
                this.Handle, this.Parent != null ? this.Parent.ToString() : "null");
        }

Usage Example

示例#1
0
 /// <summary>
 /// Starts the teardown sequence for the current window.
 /// </summary>
 void DestroyWindow()
 {
     if (Exists)
     {
         Debug.Print("Destroying window: {0}", window.ToString());
         Functions.DestroyWindow(window.WindowHandle);
         exists = false;
     }
 }