ShopToolsUtilCenteredLeft Method

Return the left coordinate of an object centered within an area.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static int CenteredLeft(
	int areaWidth,
	int objectWidth
)

Parameters

areaWidth  Int32
Width of the area in which the object is centered.
objectWidth  Int32
Width of the object to be placed.

Return Value

Int32
The left coordinate of the centered object.

See Also