Show / Hide Table of Contents

Struct Thickness

Represents the thickness of an object.

Implements
System.IEquatable<Thickness>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GraphShape
Assembly: GraphShape.dll
Syntax
[Serializable]
public struct Thickness : IEquatable<Thickness>

Constructors

| Improve this Doc View Source

Thickness(Double, Double, Double, Double)

Constructor.

Declaration
public Thickness(double left, double top, double right, double bottom)
Parameters
Type Name Description
System.Double left

Left bound value.

System.Double top

Top bound value.

System.Double right

Right bound value.

System.Double bottom

Bottom bound value.

Fields

| Improve this Doc View Source

Bottom

Bottom bound value.

Declaration
public readonly double Bottom
Field Value
Type Description
System.Double
| Improve this Doc View Source

Left

Left bound value.

Declaration
public readonly double Left
Field Value
Type Description
System.Double
| Improve this Doc View Source

Right

Right bound value.

Declaration
public readonly double Right
Field Value
Type Description
System.Double
| Improve this Doc View Source

Top

Top bound value.

Declaration
public readonly double Top
Field Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Equals(Thickness)

Declaration
public bool Equals(Thickness other)
Parameters
Type Name Description
Thickness other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(Thickness, Thickness)

Indicates whether both Thickness are equal.

Declaration
public static bool operator ==(Thickness thickness1, Thickness thickness2)
Parameters
Type Name Description
Thickness thickness1

First Thickness to compare.

Thickness thickness2

Second Thickness to compare.

Returns
Type Description
System.Boolean

True if both Thickness are equal, otherwise false.

| Improve this Doc View Source

Inequality(Thickness, Thickness)

Indicates whether both Thickness are not equal.

Declaration
public static bool operator !=(Thickness thickness1, Thickness thickness2)
Parameters
Type Name Description
Thickness thickness1

First Thickness to compare.

Thickness thickness2

Second Thickness to compare.

Returns
Type Description
System.Boolean

True if both Thickness are equal, otherwise false.

Implements

System.IEquatable<T>

Extension Methods

GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape