Class BorderSide
A subcomponent that defines individual sides of a Border Component.
-
BorderSide:Border (initialWidth[, initialStyle=BorderStyle.None], initialContent, initialRadius)
-
Border constructor.
Parameters:
- initialWidth
number
The BorderSide's initial width.
- initialStyle
BorderStyle
The BorderSide's initial BorderStyle.
(default BorderStyle.None)
- initialContent
Brush or Image
The BorderSide's initial Brush or Image.
- initialRadius
number
The radius of the BorderSide's corners. Only relevant for top and bottom BorderSides.
Returns:
BorderSide
-
self.Width.get ()
-
Returns the BorderSide's width.
Returns:
number
-
self.Width.set (value)
-
Sets the BorderSide's width.
Parameters:
-
self.Style.get ()
-
Returns the BorderSide's BorderStyle.
Returns:
BorderStyle
-
self.Style.set (value)
-
Sets the BorderSide's BorderStyle.
Parameters:
-
self.Content.get ()
-
Returns the BorderSide's content.
Returns:
Image or Brush
-
self.Content.set (value)
-
Sets the BorderSide's content.
Parameters:
-
self.Radius.get ()
-
Returns the BorderSide's corner radius.
Returns:
number
-
self.Radius.set (value)
-
Sets the BorderSide's corner radius. Only useful for top and bottom BorderSides.
Parameters:
-
self.IsSide.get ()
-
If true, this is a left or right BorderSide. If false, it is a top or bottom BorderSide.
Returns:
bool
-
self.IsSide.set (value)
-
Sets a flag determining whether this is a left or right BorderSide, or a top or bottom.
Parameters:
-
self.Styletable.get ()
-
Updates and returns the BorderSide's styletable.
Returns:
table