Method Border
Border(GenericDirection, int)
Sets the ISizerFlags to have a border of a number of pixels specified
by borderInPixels
with the directions specified by
direction
.
ISizerFlags Border(GenericDirection direction, int borderInPixels)
Parameters
direction
GenericDirectionSides to which border is applied.
borderInPixels
intBorder width in pixels.
Returns
- ISizerFlags
This ISizerFlags instance allowing chaining multiple methods calls.
Remarks
Prefer to use Border(GenericDirection) or DoubleBorder(GenericDirection) or TripleBorder(GenericDirection) versions instead of hard-coding the border value in pixels to avoid too small borders on devices with high DPI displays.
Border(GenericDirection)
Sets the ISizerFlags to have a border with size as returned by GetDefaultBorder().
ISizerFlags Border(GenericDirection direction = GenericDirection.All)
Parameters
direction
GenericDirectionSides to which border is applied.
Returns
- ISizerFlags
This ISizerFlags instance allowing chaining multiple methods calls.