HierarchyRectangle<T> Class

A node of a tree placed by a TreemapLayout or a PartitionLayout.

public sealed class HierarchyRectangle<T> : IEquatable<HierarchyRectangle<T>>

Type parameters

T
The type of the data of the nodes.
Implements

Constructors

NameDescription
HierarchyRectangle(HierarchyNode<T>, double, double, double, double)A node of a tree placed by a TreemapLayout or a PartitionLayout.

HierarchyRectangle(HierarchyNode<T>, double, double, double, double)

HierarchyRectangle`1.cs

A node of a tree placed by a TreemapLayout or a PartitionLayout.

public HierarchyRectangle(HierarchyNode<T> Node, double X0, double Y0, double X1, double Y1)

Parameters

Node HierarchyNode<T>
The node.
X0 double
The left edge.
Y0 double
The top edge.
X1 double
The right edge.
Y1 double
The bottom edge.

Properties

NameDescription
HeightGets the height.
NodeThe node.
WidthGets the width.
X0The left edge.
X1The right edge.
Y0The top edge.
Y1The bottom edge.

Gets the height.

public double Height { get; }

Property value

double

The node.

public HierarchyNode<T> Node { get; init; }

Property value

HierarchyNode<T>

Gets the width.

public double Width { get; }

Property value

double

The left edge.

public double X0 { get; init; }

Property value

double

The right edge.

public double X1 { get; init; }

Property value

double

The top edge.

public double Y0 { get; init; }

Property value

double

The bottom edge.

public double Y1 { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(HierarchyNode<T>, double, double, double, double)
Equals(HierarchyRectangle<T>?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(HierarchyNode<T>, double, double, double, double)

public void Deconstruct(out HierarchyNode<T> Node, out double X0, out double Y0, out double X1, out double Y1)

Parameters

Node HierarchyNode<T>
X0 double
Y0 double
X1 double
Y1 double

No documentation is available.

Equals overloads

Equals(HierarchyRectangle<T>?)

public bool Equals(HierarchyRectangle<T>? other)
Parameters
other HierarchyRectangle<T>?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(HierarchyRectangle<T>?, HierarchyRectangle<T>?)
operator !=(HierarchyRectangle<T>?, HierarchyRectangle<T>?)

operator ==(HierarchyRectangle<T>?, HierarchyRectangle<T>?)

public static bool operator ==(HierarchyRectangle<T>? left, HierarchyRectangle<T>? right)

No documentation is available.

operator !=(HierarchyRectangle<T>?, HierarchyRectangle<T>?)

public static bool operator !=(HierarchyRectangle<T>? left, HierarchyRectangle<T>? right)

No documentation is available.