Thickness Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Thickness(Double) |
Creates a new Thickness object that represents a uniform thickness of size |
Thickness(Double, Double) |
Creates a new Thickness object that has a horizontal thickness of |
Thickness(Double, Double, Double, Double) |
Creates a new Thickness object with thicknesses defined by |
Thickness(Double)
Creates a new Thickness object that represents a uniform thickness of size uniformSize
.
public Thickness (double uniformSize);
new Xamarin.Forms.Thickness : double -> Xamarin.Forms.Thickness
Parameters
- uniformSize
- System.Double
The uniform size of all edges in the new thickness.
Applies to
Thickness(Double, Double)
Creates a new Thickness object that has a horizontal thickness of horizontalSize
and a vertical thickness of verticalSize
.
public Thickness (double horizontalSize, double verticalSize);
new Xamarin.Forms.Thickness : double * double -> Xamarin.Forms.Thickness
Parameters
- horizontalSize
- System.Double
The width of the left and right thicknesses.
- verticalSize
- System.Double
The height of the top and bottom thicknesses.
Applies to
Thickness(Double, Double, Double, Double)
Creates a new Thickness object with thicknesses defined by left
, top
, right
, and bottom
.
public Thickness (double left, double top, double right, double bottom);
new Xamarin.Forms.Thickness : double * double * double * double -> Xamarin.Forms.Thickness
Parameters
- left
- System.Double
The width of the left thickness.
- top
- System.Double
The height of the top thickness.
- right
- System.Double
The width of the right thickness.
- bottom
- System.Double
The height of the bottom thickness.