Inheritance
System.Object
EdgeInsets
public class EdgeInsets : IEquatable<EdgeInsets>
Fields
Declaration
public readonly float bottom
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float left
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float right
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float top
Field Value
Type |
Description |
System.Single |
|
Declaration
public static readonly EdgeInsets zero
Field Value
Properties
Declaration
public Offset bottomLeft { get; }
Property Value
Declaration
public Offset bottomRight { get; }
Property Value
Declaration
public Size collapsedSize { get; }
Property Value
Declaration
public EdgeInsets flipped { get; }
Property Value
Declaration
public float horizontal { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public bool isNonNegative { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public Offset topLeft { get; }
Property Value
Declaration
public Offset topRight { get; }
Property Value
Declaration
public float vertical { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public EdgeInsets add(EdgeInsets other)
Parameters
Returns
Declaration
public static EdgeInsets all(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Declaration
public float along(Axis axis)
Parameters
Type |
Name |
Description |
Axis |
axis |
|
Returns
Type |
Description |
System.Single |
|
Declaration
public EdgeInsets copyWith(float? left = default(float? ), float? top = default(float? ), float? right = default(float? ), float? bottom = default(float? ))
Parameters
Type |
Name |
Description |
System.Nullable<System.Single> |
left |
|
System.Nullable<System.Single> |
top |
|
System.Nullable<System.Single> |
right |
|
System.Nullable<System.Single> |
bottom |
|
Returns
Declaration
public Rect deflateRect(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Declaration
public Size deflateSize(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(EdgeInsets other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static EdgeInsets fromLTRB(float left, float top, float right, float bottom)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
Returns
Declaration
public static EdgeInsets fromWindowPadding(WindowPadding padding, float devicePixelRatio)
Parameters
Type |
Name |
Description |
WindowPadding |
padding |
|
System.Single |
devicePixelRatio |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public Rect inflateRect(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Declaration
public Size inflateSize(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Declaration
public static EdgeInsets lerp(EdgeInsets a, EdgeInsets b, float t)
Parameters
Returns
Declaration
public static EdgeInsets only(float left = 0F, float top = 0F, float right = 0F, float bottom = 0F)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
Returns
Declaration
public EdgeInsets subtract(EdgeInsets other)
Parameters
Returns
Declaration
public static EdgeInsets symmetric(float vertical = 0F, float horizontal = 0F)
Parameters
Type |
Name |
Description |
System.Single |
vertical |
|
System.Single |
horizontal |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static EdgeInsets operator +(EdgeInsets a, EdgeInsets b)
Parameters
Returns
Declaration
public static EdgeInsets operator /(EdgeInsets a, float b)
Parameters
Type |
Name |
Description |
EdgeInsets |
a |
|
System.Single |
b |
|
Returns
Declaration
public static bool operator ==(EdgeInsets a, EdgeInsets b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(EdgeInsets a, EdgeInsets b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static EdgeInsets operator %(EdgeInsets a, float b)
Parameters
Type |
Name |
Description |
EdgeInsets |
a |
|
System.Single |
b |
|
Returns
Declaration
public static EdgeInsets operator *(EdgeInsets a, float b)
Parameters
Type |
Name |
Description |
EdgeInsets |
a |
|
System.Single |
b |
|
Returns
Declaration
public static EdgeInsets operator -(EdgeInsets a, EdgeInsets b)
Parameters
Returns
Declaration
public static EdgeInsets operator -(EdgeInsets a)
Parameters
Returns