Class NinePatchTexture
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
BottomMiddle
The bottom-middle subsection.
[Required]
public NinePatchSubsection BottomMiddle { get; set; }
Property Value
BottomRight
The bottom-right subsection.
[Required]
public NinePatchSubsection BottomRight { get; set; }
Property Value
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
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
MiddleLeft
The middle-left subsection.
[Required]
public NinePatchSubsection MiddleLeft { get; set; }
Property Value
MiddleMiddle
The middle subsection, the part stretched to fill.
[Required]
public NinePatchSubsection MiddleMiddle { get; set; }
Property Value
MiddleRight
The middle-right subsection.
[Required]
public NinePatchSubsection MiddleRight { get; set; }
Property Value
Size
The size of each subsection in pixels. A subsection may override it.
public Size Size { get; set; }
Property Value
SizeValue
The Size attribute's text form. Use Size in code.
public string SizeValue { get; set; }
Property Value
Texture
The image file all the subsections are read from.
[Required]
public TextureFile Texture { get; set; }
Property Value
TopLeft
The top-left subsection.
[Required]
public NinePatchSubsection TopLeft { get; set; }
Property Value
TopMiddle
The top-middle subsection.
[Required]
public NinePatchSubsection TopMiddle { get; set; }
Property Value
TopRight
The top-right subsection.
[Required]
public NinePatchSubsection TopRight { get; set; }