Class
TableWidthUnit

Represents the width unit of a table in the Telerik document model.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(TableWidthUnitConverter))]
public class TableWidthUnit

Inheritance: objectTableWidthUnit

Constructors

TableWidthUnit(TableWidthUnitType)

Declaration

cs-api-definition
public TableWidthUnit(TableWidthUnitType type)

Parameters

type

TableWidthUnitType

TableWidthUnit(TableWidthUnitType, double)

Declaration

cs-api-definition
public TableWidthUnit(TableWidthUnitType type, double value)

Parameters

type

TableWidthUnitType

value

double

TableWidthUnit(double)

Declaration

cs-api-definition
public TableWidthUnit(double value)

Parameters

value

double

Properties

Type

Represents the different types of table width units that can be used in a table.

Declaration

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

Property Value

TableWidthUnitType

Value

Represents the width unit for a table in Telerik's document model.

Declaration

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

Property Value

double

Methods

Calculate(float)

Calculates the value of the table width in a specified unit based on the given float value.

Declaration

cs-api-definition
public float? Calculate(float availableWidth)

Parameters

availableWidth

float

The float value representing the width, which will be used for the calculation.

Returns

float?

The calculated width as a unit of type Telerik.Windows.Documents.Model.TableWidthUnit.

Equals(object)

Determines whether the specified object is equal to the current TableWidthUnit instance.

Declaration

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

Parameters

obj

object

The object to compare with the current TableWidthUnit instance.

Returns

bool

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

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for the current instance of the TableWidthUnit class.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for the current instance.

Overrides object.GetHashCode()

Operators

operator !=(TableWidthUnit, TableWidthUnit)

Declaration

cs-api-definition
public static bool operator !=(TableWidthUnit left, TableWidthUnit right)

Parameters

left

TableWidthUnit

right

TableWidthUnit

Returns

bool

operator ==(TableWidthUnit, TableWidthUnit)

Declaration

cs-api-definition
public static bool operator ==(TableWidthUnit left, TableWidthUnit right)

Parameters

left

TableWidthUnit

right

TableWidthUnit

Returns

bool