C# Class SIL.FieldWorks.SharpViews.Thickness

Similar to System.Windows.Thickness, this represents the four thicknesses of the sides of a rectangle in 96ths of an inch. It is used for the thickness of a border, padding, and margins. It is not a struct because it Thickness variables are often null, and we do not need to allocate space for four doubles. Another reason to define it is to avoid using PresentationFramework, which may be a problem for Mono.
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Properties

Property Type Description
Bottom double
Default Thickness
Leading double
Top double
Trailing double

Private Properties

Property Type Description
ToMillipoints int

Public Methods

Method Description
Equals ( Thickness other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Thickness ( double thickness ) : System

Make one with uniform thickness.

Thickness ( double leading, double top, double trailing, double bottom ) : System
operator ( ) : bool

Private Methods

Method Description
ToMillipoints ( double points ) : int

Method Details

Equals() public method

public Equals ( Thickness other ) : bool
other Thickness
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Thickness() public method

Make one with uniform thickness.
public Thickness ( double thickness ) : System
thickness double
return System

Thickness() public method

public Thickness ( double leading, double top, double trailing, double bottom ) : System
leading double
top double
trailing double
bottom double
return System

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Bottom public property

public double Bottom
return double

Default public static property

A default value, no thickness: use this rather than null wherever
public static Thickness,SIL.FieldWorks.SharpViews Default
return Thickness

Leading public property

public double Leading
return double

Top public property

public double Top
return double

Trailing public property

public double Trailing
return double