struct Margin

in global :: Sandbox . UI

Represents a Rect where each side is the thickness of an edge/padding/margin/border, rather than positions.


public float Width { get; set; }

Width of the inner square contained within the margin.

public float Height { get; set; }

Height of the inner square contained within the margin.

public float Left { get; set; }

Thickness of the left side margin.

public float Top { get; set; }

Thickness of the top margin.

public float Right { get; set; }

Thickness of the right side margin.

public float Bottom { get; set; }

Thickness of the bottom margin.

public Vector2 Position { get; set; }

Position of the inner top left corder of the margin/border.

public Vector2 Size { get; set; }

Size of the inner square contained within the margin.

public Vector2 EdgeSize { get; }

When the Rect describes edges, this returns the total size of the edges in each direction

public Margin EdgeAdd( Margin edges )

Where padding is an edge type rect, will return this rect expanded with those edges.

public Margin EdgeSubtract( Margin edges )

Where padding is an edge type rect, will return this rect expanded with those edges.

public bool IsNearlyZero( double tolerance = 1E-06 )

Returns true if margin is practically zero

public Margin( float horizontal, float vertical )

😔 No documentation found.

public Margin( float uniform )

😔 No documentation found.

public Margin( Rect r )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Margin( Nullable<float> left, Nullable<float> top, Nullable<float> right, Nullable<float> bottom )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public static Margin op_Multiply( Margin a, Vector2 b )

😔 No documentation found.

public static Margin op_Multiply( Margin a, float b )

😔 No documentation found.

public static Margin op_Addition( Margin a, Margin b )

😔 No documentation found.

public Margin( float left, float top, float right, float bottom )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public static Margin op_Implicit( float value )

😔 No documentation found.