Class Spacing
Four values in pixels, one for each side. Written as {left,top,right,bottom}, or as one
number for all four sides.
public class Spacing
- Inheritance
-
Spacing
- Inherited Members
Constructors
Spacing()
Creates a spacing of zero on every side.
public Spacing()
Spacing(int, int, int, int)
Creates a spacing with the given left, top, right and bottom values, in pixels.
public Spacing(int left, int top, int right, int bottom)
Parameters
Spacing(string)
Parses {left,top,right,bottom}, or a single number applied to all four sides.
Anything else leaves the values at zero.
public Spacing(string spacingString)
Parameters
spacingStringstring
Properties
Bottom
The bottom value, in pixels.
public int Bottom { get; set; }
Property Value
Left
The left value, in pixels.
public int Left { get; set; }
Property Value
Right
The right value, in pixels.
public int Right { get; set; }
Property Value
Top
The top value, in pixels.
public int Top { get; set; }
Property Value
Methods
ToString()
Formats the spacing as {left,top,right,bottom}.
public override string ToString()