Class
TableWidthUnit

Defines table or cell width as auto-calculated, fixed pixels, or percentage of available space based on type and value.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Styles

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

cs-api-definition
public class TableWidthUnit

Inheritance: objectTableWidthUnit

Constructors

TableWidthUnit(TableWidthUnitType)

Initializes width with the specified type; typically used for auto-width elements.

Declaration

cs-api-definition
public TableWidthUnit(TableWidthUnitType type)

Parameters

type

TableWidthUnitType

The type.

TableWidthUnit(TableWidthUnitType, double)

Initializes width with the specified type and value in device independent pixels (1/96 inch).

Declaration

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

Parameters

type

TableWidthUnitType

The type.

value

double

The value in device independent pixels (1/96 inch).

TableWidthUnit(double)

Initializes fixed-width using the specified value in device independent pixels (1/96 inch).

Declaration

cs-api-definition
public TableWidthUnit(double value)

Parameters

value

double

The value in device independent pixels (1/96 inch).

Properties

Type

Gets the width type indicating auto, fixed, or percentage measurement.

Declaration

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

Property Value

TableWidthUnitType

The unit type.

Value

Gets the numeric width value in device independent pixels (1/96 inch) or percentage depending on Type.

Declaration

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

Property Value

double

The unit value.

Methods

Equals(object)

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

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 object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides object.ToString()

Operators

operator !=(TableWidthUnit, TableWidthUnit)

Determines whether the specified table width units are different.

Declaration

cs-api-definition
public static bool operator !=(TableWidthUnit a, TableWidthUnit b)

Parameters

a

TableWidthUnit

b

TableWidthUnit

Returns

bool

True if the table width units are different.

operator ==(TableWidthUnit, TableWidthUnit)

Determines whether the specified table width units are equal.

Declaration

cs-api-definition
public static bool operator ==(TableWidthUnit a, TableWidthUnit b)

Parameters

a

TableWidthUnit

b

TableWidthUnit

Returns

bool

True if the table width units are equal.