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

    Show / Hide Table of Contents

    PdfLanguage Struct

    Namespace:
    GemBox.Pdf
    Assembly:
    GemBox.Pdf.dll

    Represents a language identifier that shall either be the empty text string, to indicate that the language is unknown, or a Language-Tag as defined in RFC 3066, Tags for the Identification of Languages.

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

    Constructors

    PdfLanguage(String)

    Initializes a new instance of the PdfLanguage structure.

    • C#
    • VB.NET
    public PdfLanguage(string value)
    Public Sub New(value As String)
    Parameters
    value
    System.String

    An RFC 3066 language string.

    Methods

    Equals(PdfLanguage)

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

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

    The other language to compare with this language instance.

    Returns
    System.Boolean

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

    Equals(Object)

    Determines whether the specified System.Object is equal to this PdfLanguage 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 language instance.

    Returns
    System.Boolean

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

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this PdfLanguage 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 PdfLanguage instance.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this PdfLanguage instance.

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

    A System.String that represents this PdfLanguage instance.

    Overrides
    System.ValueType.ToString()

    Operators

    Equality(PdfLanguage, PdfLanguage)

    Determines whether first and second PdfLanguages are equal.

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

    The first language.

    second
    PdfLanguage

    The second language.

    Returns
    System.Boolean

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

    Inequality(PdfLanguage, PdfLanguage)

    Determines whether first and second PdfLanguages are not equal.

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

    The first language.

    second
    PdfLanguage

    The second language.

    Returns
    System.Boolean

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

    Implements

    System.IEquatable<T>

    See Also

    PDF Specification ISO 32000-1:2008, section '14.9.2.2 Language Identifiers'
    RFC 3066, Tags for the Identification of Languages
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.