ShopToolsUtilCenteredTop Method

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

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static int CenteredTop(
	int areaHeight,
	int objectHeight
)

Parameters

areaHeight  Int32
Height of the area in which the object is centered.
objectHeight  Int32
Height of the object to be placed.

Return Value

Int32
The top coordinate of the centered object.

See Also