Class NinePatchSubsection
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
Properties
Color
The color of this subsection, overriding the texture's color.
[StringLength(7, MinimumLength = 7)]
public string Color { get; set; }
Property Value
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
PositionValue
The Position attribute's text form. Use Position in code.
[Required]
public string PositionValue { get; set; }
Property Value
Size
The subsection's size in pixels. Written through SizeValue.
public Size Size { get; set; }
Property Value
SizeValue
The Size attribute's text form. Use Size in code.
public string SizeValue { get; set; }