/// <summary> /// Sets the the specified point on this frame to be at the same position /// as the corresponding point on the parent frame. /// </summary> /// <param name="point">The point.</param> /// <param name="offset">The offset.</param> /// <param name="anchorFrame">The frame this frame is anchored to.</param> /// <param name="anchoredTo">The point on the anchorFrame to anchor to.</param> public void SetPoint(Points point, Int2D offset, Frame anchorFrame, Points anchoredTo) { SetPoint(point, offset.X, offset.Y, anchorFrame, anchoredTo); }
/// <summary> /// Sets the size. SetPoint overrides the size set here. /// </summary> /// <param name="size">The size.</param> public void SetSize(Int2D size) { SetSize(size.X, size.Y); }
/// <summary> /// Indicates whether this instance and a specified Int2D are equal. /// </summary> /// <param name="value">The value to compare to.</param> /// <returns>true is <paramref name="value"/> and this instance are equal; else false.</returns> public bool Equals(Int2D value) { return this.X == value.X && this.Y == value.Y; }
/// <summary> /// Sets the the specified point on this frame to be at the same position /// as the corresponding point on the parent frame. /// </summary> /// <param name="point">The point.</param> /// <param name="offset">The offset.</param> public void SetPoint(Points point, Int2D offset) { SetPoint(point, offset.X, offset.Y); }
/// <summary> /// Indicates whether this instance and a specified Int2D are equal. /// </summary> /// <param name="value">The value to compare to.</param> /// <returns>true is <paramref name="value"/> and this instance are equal; else false.</returns> public bool Equals(Int2D value) { return X == value.X && Y == value.Y; }
/// <summary> /// Indicates whether this instance and a specified Int2D are equal. /// </summary> /// <param name="value">The value to compare to.</param> /// <returns>true is <paramref name="value"/> and this instance are equal; else false.</returns> public bool Equals(Int2D value) { return(this.X == value.X && this.Y == value.Y); }