Table of Contents

Class NinePatchTexture

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

A nine-patch texture: eight edge and corner pieces around a middle, read from one image.

public class NinePatchTexture : Texture
Inheritance
NinePatchTexture
Inherited Members

Properties

BottomLeft

The bottom-left subsection.

[Required]
public NinePatchSubsection BottomLeft { get; set; }

Property Value

NinePatchSubsection

BottomMiddle

The bottom-middle subsection.

[Required]
public NinePatchSubsection BottomMiddle { get; set; }

Property Value

NinePatchSubsection

BottomRight

The bottom-right subsection.

[Required]
public NinePatchSubsection BottomRight { get; set; }

Property Value

NinePatchSubsection

Color

The color of the texture. Applies to every subsection unless one overrides it.

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

Property Value

string

FontColor

The font color to use with this texture, where it applies. White by default.

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

Property Value

string

MiddleLeft

The middle-left subsection.

[Required]
public NinePatchSubsection MiddleLeft { get; set; }

Property Value

NinePatchSubsection

MiddleMiddle

The middle subsection, the part stretched to fill.

[Required]
public NinePatchSubsection MiddleMiddle { get; set; }

Property Value

NinePatchSubsection

MiddleRight

The middle-right subsection.

[Required]
public NinePatchSubsection MiddleRight { get; set; }

Property Value

NinePatchSubsection

Size

The size of each subsection in pixels. A subsection may override it.

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

Texture

The image file all the subsections are read from.

[Required]
public TextureFile Texture { get; set; }

Property Value

TextureFile

TopLeft

The top-left subsection.

[Required]
public NinePatchSubsection TopLeft { get; set; }

Property Value

NinePatchSubsection

TopMiddle

The top-middle subsection.

[Required]
public NinePatchSubsection TopMiddle { get; set; }

Property Value

NinePatchSubsection

TopRight

The top-right subsection.

[Required]
public NinePatchSubsection TopRight { get; set; }

Property Value

NinePatchSubsection