Wiki

Clone wiki

RogueSharp / RogueSharp / Rectangle / Inflate

RectangleInflate Method

Pushes the edges of the Rectangle out by the specified horizontal and vertical values

Namespace: RogueSharp
Assembly:

Syntax

public void Inflate(
    int horizontalValue,
    int verticalValue
)

Parameters

horizontalValue

Type: SystemInt32
Value to push the sides out by

verticalValue

Type: SystemInt32
Value to push the top and bottom out by

Exceptions

Exception Condition
OverflowException Thrown if the new width or height exceed Int32.MaxValue, or new X or Y are smaller than int32.MinValue

See Also

Reference

Rectangle Class
RogueSharp Namespace

[3]: 2014-2016 Faron Bracy

Updated