Table of Contents

Class NinePatchSubsection

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

One subsection of a nine-patch texture: where it is in the texture, and its size and color.

public class NinePatchSubsection
Inheritance
NinePatchSubsection
Inherited Members

Constructors

NinePatchSubsection()

Creates an empty subsection.

public NinePatchSubsection()

NinePatchSubsection(Point, Size, string)

Creates a subsection at position, with the given size and color.

public NinePatchSubsection(Point position, Size size, string color)

Parameters

position Point
size Size
color string

Properties

Color

The color of this subsection, overriding the texture's color.

[StringLength(7, MinimumLength = 7)]
public string Color { get; set; }

Property Value

string

Position

The subsection's position in pixels, from the top left of the texture. Written through PositionValue.

[Required]
public Point Position { get; set; }

Property Value

Point

PositionValue

The Position attribute's text form. Use Position in code.

[Required]
public string PositionValue { get; set; }

Property Value

string

Size

The subsection's size in pixels. Written through SizeValue.

public Size Size { get; set; }

Property Value

Size

SizeValue

The Size attribute's text form. Use Size in code.

public string SizeValue { get; set; }

Property Value

string