Struct PaddingLength
Describes the length of one side of the padding around the content of a PaddedViewbox.
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TypeConverter(typeof(PaddingLengthConverter))]
public struct PaddingLength : IEquatable<PaddingLength>
  Constructors
View SourcePaddingLength(Double)
Initializes a new instance of the PaddingLength structure that has the specified length (supplied as System.Double) in pixels.
Declaration
public PaddingLength(double pixels)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | pixels | 
PaddingLength(Double, PaddingUnitType)
Initializes a new instance of the PaddingLength structure and specifies what kind of value it holds.
Declaration
public PaddingLength(double value, PaddingUnitType type)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | value | The initial value of this instance of PaddingLength.  | 
      
| PaddingUnitType | type | The PaddingUnitType held by this instance of PaddingLength.  | 
      
Fields
View SourceEmpty
Represents an empty PaddingLength.
Declaration
public static readonly PaddingLength Empty
  Field Value
| Type | Description | 
|---|---|
| PaddingLength | 
Remarks
This is not a PaddingLength with a Value of 0.
Properties
View SourceIsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public readonly bool IsEmpty { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
IsStar
Gets a value indicating whether the PaddingLength holds a value that is expressed as a weighted proportion of the contents size.
Declaration
public readonly bool IsStar { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Type
Gets or sets the associated PaddingUnitType for the PaddingLength.
Declaration
public PaddingUnitType Type { readonly get; set; }
  Property Value
| Type | Description | 
|---|---|
| PaddingUnitType | 
Value
Gets or sets a System.Double that represents the value of the PaddingLength.
Declaration
public double Value { readonly get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Methods
View SourceEquals(PaddingLength)
Compares this PaddingLength structure to another PaddingLength for equality.
Declaration
public bool Equals(PaddingLength other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PaddingLength | other | The padding to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Equals(Object)
Compares this PaddingLength structure to another System.Object for equality.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | The object to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
ToString()
Returns the string representation if the PaddingLength structure.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | A System.String that represents the PaddingLength structure.  | 
      
Overrides
ToString(CultureInfo)
Returns the string representation if the PaddingLength structure according to the specified System.Globalization.CultureInfo.
Declaration
public string ToString(CultureInfo cultureInfo)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Globalization.CultureInfo | cultureInfo | The culture used to format the string representation.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | A System.String that represents the PaddingLength structure.  | 
      
Operators
View SourceEquality(PaddingLength, PaddingLength)
Compares two PaddingLength structures for equality.
Declaration
public static bool operator ==(PaddingLength a, PaddingLength b)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PaddingLength | a | The first instance of PaddingLength to compare.  | 
      
| PaddingLength | b | The second instance of PaddingLength to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Inequality(PaddingLength, PaddingLength)
Compares two PaddingLength structures for inequality.
Declaration
public static bool operator !=(PaddingLength a, PaddingLength b)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PaddingLength | a | The first instance of PaddingLength to compare.  | 
      
| PaddingLength | b | The second instance of PaddingLength to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  |