You are here: Start » AVL.NET » AVL.ResizeBox Method

AVL.ResizeBox Method

Changes the dimensions of a box.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ResizeBox(
	AvlNet.Box inBox,
	AvlNet.Anchor2D inAnchor,
	int? inNewWidth,
	int? inNewHeight,
	out AvlNet.Box outBox
)

Parameters

Name Type Range Default Description
inBoxAvlNet.BoxInput box.
inAnchorAvlNet.Anchor2DTopLeftPoint of the box which position will not change. Default value: TopLeft.
inNewWidthint?<0, INF>Target width of the box. Default value: atl::NIL, or null.
inNewHeightint?<0, INF>Target height of the box. Default value: atl::NIL, or null.
outBoxAvlNet.BoxResized box.

Description

The operation changes dimensions of input Box to (inNewWidth, inNewHeight).

See also