Xwt.WidgetSpacing.GetSpacingForOrientation C# (CSharp) Method

GetSpacingForOrientation() public method

Get the spacing of a widget for the specified orientation.
public GetSpacingForOrientation ( Orientation orientation ) : double
orientation Orientation The orientation.
return double
		public double GetSpacingForOrientation (Orientation orientation)
		{
			if (orientation == Orientation.Vertical)
				return Top + Bottom;
			else
				return Left + Right;
		}
	}