You are here: Start » AVL.NET » Function Reference » Basic » Box » AVL.ResizeBox_Delta

AVL.ResizeBox_Delta

Changes the dimensions of a box by adding some values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ResizeBox_Delta
(
	AvlNet.Box inBox,
	AvlNet.Anchor2D inAnchor,
	int inWidthDelta,
	int inHeightDelta,
	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.
inWidthDeltaint0Value added to width of the box. Default value: 0.
inHeightDeltaint0Value added to height of the box. Default value: 0.
outBoxAvlNet.BoxResized box.

Errors

List of possible exceptions:

Error type Description
DomainError Negative box dimensions in ResizeBox_Delta.

See also