New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class TableWidthUnit

Inheritance: objectTableWidthUnit

Constructors

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

C#
public TableWidthUnit(double value)
Parameters:valuedouble

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

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

C#
public TableWidthUnit(TableWidthUnitType type, double value)
Parameters:typeTableWidthUnitType

The type.

valuedouble

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

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

C#
public TableWidthUnit(TableWidthUnitType type)
Parameters:typeTableWidthUnitType

The type.

Methods

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

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

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()

Operators

Determines whether the specified table width units are different.

C#
public static bool operator !=(TableWidthUnit a, TableWidthUnit b)
Parameters:aTableWidthUnitbTableWidthUnitReturns:

bool

True if the table width units are different.

Determines whether the specified table width units are equal.

C#
public static bool operator ==(TableWidthUnit a, TableWidthUnit b)
Parameters:aTableWidthUnitbTableWidthUnitReturns:

bool

True if the table width units are equal.

Properties

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

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

The unit type.

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

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

The unit value.