TableWidthUnit
Represents a table width as an automatic, fixed, or percentage value.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
[TypeConverter(typeof(TableWidthUnitConverter))]
public class TableWidthUnit
Inheritance: objectTableWidthUnit
Constructors
Creates a fixed-width unit.
Creates a width unit with an explicit type and value.
public TableWidthUnit(TableWidthUnitType type, double value)
How value is interpreted.
The absolute width or percentage, depending on type.
Creates a width unit without an explicit numeric value; this overload is used for Auto.
public TableWidthUnit(TableWidthUnitType type)
The width interpretation.
Properties
Gets whether the width is automatic, fixed, or percentage-based.
public TableWidthUnitType Type { get; }
Methods
Determines whether another object represents the same width unit. Automatic units compare equal regardless of their stored value.
Returns a hash code based on the width type and value.
Operators
Determines whether two width units have unequal values.
public static bool operator !=(TableWidthUnit left, TableWidthUnit right)
The first width unit.
rightTableWidthUnitThe second width unit.
Returns:Determines whether two width units have equal values, treating two null references as equal.
public static bool operator ==(TableWidthUnit left, TableWidthUnit right)
The first width unit.
rightTableWidthUnitThe second width unit.
Returns:true if both references are null or the units compare equal; otherwise, false.