Skip to content

NineSliceBorder Constructors

Definition

Namespace: Brine2D.Rendering

Overloads
NineSliceBorder\(float\) Creates a border with the same inset on all four sides.
NineSliceBorder\(float, float\) Creates a border with symmetric horizontal and vertical insets.
NineSliceBorder\(float, float, float, float\) Creates a border with independent insets for each side.

NineSliceBorder\(float\) Constructor

Creates a border with the same inset on all four sides.

C#
public NineSliceBorder(float uniform);

Parameters

uniform System.Single

NineSliceBorder\(float, float\) Constructor

Creates a border with symmetric horizontal and vertical insets.

C#
public NineSliceBorder(float horizontal, float vertical);

Parameters

horizontal System.Single

vertical System.Single

NineSliceBorder\(float, float, float, float\) Constructor

Creates a border with independent insets for each side.

C#
public NineSliceBorder(float left, float top, float right, float bottom);

Parameters

left System.Single

top System.Single

right System.Single

bottom System.Single