Class
TableRowHeightBase<TEnum>

Base type for describing row height with a typed mode (TEnum) and a DIP value for layout.

Definition

Namespace:Telerik.Windows.Documents.Model.Tables

Assembly:Telerik.Windows.Documents.Core.dll

Type Parameters:

TEnum

The enum type that defines specific height-related options for the table row. Must be a type derived from Enum.

Syntax:

cs-api-definition
public abstract class TableRowHeightBase<TEnum> : IEquatable<TableRowHeightBase<TEnum>> where TEnum : Enum

Inheritance: objectTableRowHeightBase<TEnum>

Derived Classes: TableRowHeightTableRowHeight

Implements: IEquatable<TableRowHeightBase<TEnum>>

Properties

Type

Gets the height mode from TEnum, which determines how Value affects layout.

Declaration

cs-api-definition
public TEnum Type { get; }

Property Value

TEnum

The type of the height.

Value

Gets the row height value in device-independent pixels (1/96 inch), interpreted per the selected Type.

Declaration

cs-api-definition
public double Value { get; }

Property Value

double

The value.

Methods

Equals(TableRowHeightBase<TEnum>)

Determine whether the specified row-height descriptor equals this instance.

Declaration

cs-api-definition
public bool Equals(TableRowHeightBase<TEnum> other)

Parameters

other

TableRowHeightBase<TEnum>

The row-height descriptor to compare with the current instance.

Returns

bool

Returns true if the specified row-height descriptor is equal to the current instance; otherwise, false.

Implements IEquatable<TableRowHeightBase<TEnum>>.Equals(TableRowHeightBase<TEnum>)

Equals(object)

Determine whether the specified object equals this row-height descriptor.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

Returns true if the specified object is equal to the current instance; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Generate a hash based on the height Value and Type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

Operators

operator !=(TableRowHeightBase<TEnum>, TableRowHeightBase<TEnum>)

Compare two row-height descriptors for inequality.

Declaration

cs-api-definition
public static bool operator !=(TableRowHeightBase<TEnum> a, TableRowHeightBase<TEnum> b)

Parameters

a

TableRowHeightBase<TEnum>

b

TableRowHeightBase<TEnum>

Returns

bool

True if the table row heights are different.

operator ==(TableRowHeightBase<TEnum>, TableRowHeightBase<TEnum>)

Compare two row-height descriptors for equality of type and value.

Declaration

cs-api-definition
public static bool operator ==(TableRowHeightBase<TEnum> a, TableRowHeightBase<TEnum> b)

Parameters

a

TableRowHeightBase<TEnum>

b

TableRowHeightBase<TEnum>

Returns

bool

True if the table row heights are equal.