GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    TableWidth Struct

    Namespace:
    GemBox.Document.Tables
    Assembly:
    GemBox.Document.dll

    Represents a table width encapsulating table width value and table width measurement unit.

    • C#
    • VB.NET
    public struct TableWidth : IEquatable<TableWidth>
    Public Structure TableWidth
        Implements IEquatable(Of TableWidth)
    Implements
    System.IEquatable<TableWidth>

    Constructors

    TableWidth(Double, TableWidthUnit)

    Initializes a new instance of the TableWidth struct with specified value and measurement unit.

    • C#
    • VB.NET
    public TableWidth(double value, TableWidthUnit unit)
    Public Sub New(value As Double, unit As TableWidthUnit)
    Parameters
    value
    System.Double

    The table width value.

    unit
    TableWidthUnit

    The table width measurement unit.

    Fields

    Auto

    Represents an automatic table width.

    • C#
    • VB.NET
    public static readonly TableWidth Auto
    Public Shared ReadOnly Auto As TableWidth
    Field Value
    TableWidth

    Properties

    Unit

    Gets the table width measurement unit.

    • C#
    • VB.NET
    public readonly TableWidthUnit Unit { get; }
    Public ReadOnly Property Unit As TableWidthUnit
    Property Value
    TableWidthUnit

    The table width measurement unit.

    Value

    Gets the table width value.

    • C#
    • VB.NET
    public readonly double Value { get; }
    Public ReadOnly Property Value As Double
    Property Value
    System.Double

    The table width value (in unit specified in Unit property).

    Methods

    Equals(TableWidth)

    Determines whether the other TableWidth is equal to this TableWidth instance.

    • C#
    • VB.NET
    public bool Equals(TableWidth other)
    Public Function Equals(other As TableWidth) As Boolean
    Parameters
    other
    TableWidth

    The other table width to compare with this table width instance.

    Returns
    System.Boolean

    true if the other TableWidth is equal to this TableWidth instance; otherwise, false.

    Equals(Object)

    Determines whether the specified System.Object is equal to this SingleBorder instance.

    • C#
    • VB.NET
    public override bool Equals(object obj)
    Public Overrides Function Equals(obj As Object) As Boolean
    Parameters
    obj
    System.Object

    The System.Object to compare with this border instance.

    Returns
    System.Boolean

    true if the specified System.Object is a SingleBorder and is equal to this SingleBorder instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this TableWidth instance.

    • C#
    • VB.NET
    public override int GetHashCode()
    Public Overrides Function GetHashCode As Integer
    Returns
    System.Int32

    An integer value that specifies a hash value for this TableWidth instance.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this TableWidth instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this TableWidth instance.

    Overrides
    System.ValueType.ToString()

    Operators

    Equality(TableWidth, TableWidth)

    Determines whether first and second TableWidths are equal.

    • C#
    • VB.NET
    public static bool operator ==(TableWidth first, TableWidth second)
    Public Shared Operator =(first As TableWidth, second As TableWidth) As Boolean
    Parameters
    first
    TableWidth

    The first table width.

    second
    TableWidth

    The second table width.

    Returns
    System.Boolean

    true if first and second table widths are equal; otherwise, false.

    Inequality(TableWidth, TableWidth)

    Determines whether first and second TableWidths are not equal.

    • C#
    • VB.NET
    public static bool operator !=(TableWidth first, TableWidth second)
    Public Shared Operator <>(first As TableWidth, second As TableWidth) As Boolean
    Parameters
    first
    TableWidth

    The first table width.

    second
    TableWidth

    The second table width.

    Returns
    System.Boolean

    true if first and second table widths are not equal; otherwise, false.

    Implements

    System.IEquatable<T>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.