Nez.RectangleExt.getSide C# (CSharp) Méthode

getSide() public static méthode

gets the position of the specified side
public static getSide ( this rect, System.Edge edge ) : int
rect this
edge System.Edge Side.
Résultat int
		public static int getSide( this Rectangle rect, Edge edge )
		{
			switch( edge )
			{
				case Edge.Top:
					return rect.Top;
				case Edge.Bottom:
					return rect.Bottom;
				case Edge.Left:
					return rect.Left;
				case Edge.Right:
					return rect.Right;
				default:
					throw new ArgumentOutOfRangeException();
			}
		}