public override bool Equals(object obj) { if (ReferenceEquals(this, obj)) return true; return Equals(obj as PageElement); }