Class TableWidthUnit
Represents the width unit of a table in the Telerik document model.
Inheritance
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class TableWidthUnit : Object
Constructors
TableWidthUnit(Double)
Declaration
public TableWidthUnit(double value)
Parameters
System.Double
value
|
TableWidthUnit(TableWidthUnitType)
TableWidthUnit(TableWidthUnitType, Double)
Declaration
public TableWidthUnit(TableWidthUnitType type, double value)
Parameters
TableWidthUnitType
type
|
System.Double
value
|
Properties
Type
Represents the different types of table width units that can be used in a table.
Declaration
public TableWidthUnitType Type { get; }
Property Value
TableWidthUnitType
|
Value
Represents the width unit for a table in Telerik's document model.
Declaration
public double Value { get; }
Property Value
System.Double
|
Methods
Calculate(Single)
Calculates the value of the table width in a specified unit based on the given float value.
Declaration
public Nullable<float> Calculate(float availableWidth)
Parameters
System.Single
availableWidth
The float value representing the width, which will be used for the calculation. |
Returns
System.Nullable<System.Single>
The calculated width as a unit of type |
Equals(Object)
Determines whether the specified object is equal to the current TableWidthUnit instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The object to compare with the current TableWidthUnit instance. |
Returns
System.Boolean
true if the specified object is equal to the current instance; otherwise, false. |
GetHashCode()
Returns a hash code for the current instance of the TableWidthUnit class.
Declaration
public override int GetHashCode()
Returns
System.Int32
A 32-bit signed integer that is the hash code for the current instance. |
Operators
Equality(TableWidthUnit, TableWidthUnit)
Declaration
public static bool operator ==(TableWidthUnit left, TableWidthUnit right)
Parameters
TableWidthUnit
left
|
TableWidthUnit
right
|
Returns
System.Boolean
|
Inequality(TableWidthUnit, TableWidthUnit)
Declaration
public static bool operator !=(TableWidthUnit left, TableWidthUnit right)
Parameters
TableWidthUnit
left
|
TableWidthUnit
right
|
Returns
System.Boolean
|