New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public abstract class TableRowHeightBase<TEnum> : IEquatable<TableRowHeightBase<TEnum>> where TEnum : Enum

Inheritance: objectTableRowHeightBase<TEnum>

Derived Classes: TableRowHeightTableRowHeight

Implements: IEquatable<TableRowHeightBase<TEnum>>

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

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)

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

C#
public bool Equals(TableRowHeightBase<TEnum> other)
Parameters:otherTableRowHeightBase<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>)

Generate a hash based on the height Value and Type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Operators

Compare two row-height descriptors for inequality.

C#
public static bool operator !=(TableRowHeightBase<TEnum> a, TableRowHeightBase<TEnum> b)
Parameters:aTableRowHeightBase<TEnum>bTableRowHeightBase<TEnum>Returns:

bool

True if the table row heights are different.

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

C#
public static bool operator ==(TableRowHeightBase<TEnum> a, TableRowHeightBase<TEnum> b)
Parameters:aTableRowHeightBase<TEnum>bTableRowHeightBase<TEnum>Returns:

bool

True if the table row heights are equal.

Properties

Type

TEnum

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

C#
public TEnum Type { get; }
Property Value:

The type of the height.

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

C#
public double Value { get; }
Property Value:

The value.