System.Drawing.Rectangle.ToString C# (CSharp) Method

ToString() public method

Converts the attributes of this to a human readable string.

public ToString ( ) : string
return string
        public override string ToString() =>
            "{X=" + X.ToString() + ",Y=" + Y.ToString() +
            ",Width=" + Width.ToString() + ",Height=" + Height.ToString() + "}";
    }

Usage Example

Beispiel #1
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     IconRect = GetCurrenIconRect();
     IconID = GetCurrenIconID();
     label1.Text = IconID.ToString();
     label2.Text = IconRect.ToString();
 }
All Usage Examples Of System.Drawing.Rectangle::ToString