public idRectangle GetRectangle(string key, idRectangle defaultValue) { string str; if (_dict.TryGetValue(key, out str) == true) { return(idHelper.ParseRectangle(str)); } return(defaultValue); }
public override bool Equals(object obj) { if (obj is idRectangle) { idRectangle r = (idRectangle)obj; return((this.X == r.X) && (this.Y == r.Y) && (this.Width == r.Width) && (this.Height == r.Height)); } return(false); }
public void Set(string key, idRectangle value) { Set(key, string.Format("{0} {1} {2} {3}", value.X, value.Y, value.Width, value.Height)); }
public idRectangle GetRectangle(string key, idRectangle defaultValue) { string str; if(_dict.TryGetValue(key, out str) == true) { return idHelper.ParseRectangle(str); } return defaultValue; }