SIL.FieldWorks.SharpViews.SharpViewsTests.MockGraphics.DrawRectangle C# (CSharp) Метод

DrawRectangle() публичный Метод

public DrawRectangle ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Результат void
		public void DrawRectangle(int xLeft, int yTop, int xRight, int yBottom)
		{
			RectanglesDrawn.Add(new Rectangle(xLeft, yTop, xRight - xLeft, yBottom - yTop));
			RectColorsDrawn.Add(BackColor);
			if (DrawActions == null)
				DrawActions = new List<object>();
			DrawActions.Add(new DrawRectangleAction()
				{Left = xLeft, Top = yTop, Right = xRight, Bottom = yBottom, Bgr = BackColor});
		}