Struct PngTextData
Stores text data contained in the iTXt, tEXt, and zTXt chunks. Used for conveying textual information associated with the image, like the name of the author, the copyright information, the date, where the image was created, or some other information.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Png
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct PngTextData : IEquatable<PngTextData>Constructors
| Improve this Doc View SourcePngTextData(String, String, String, String)
Initializes a new instance of the PngTextData struct.
Declaration
public PngTextData(string keyword, string value, string languageTag, string translatedKeyword)Parameters
| Type | Name | Description | 
|---|---|---|
| String | keyword | The keyword of the property. | 
| String | value | The value of the property. | 
| String | languageTag | An optional language tag. | 
| String | translatedKeyword | A optional translated keyword. | 
Properties
| Improve this Doc View SourceKeyword
Gets the keyword of this PngTextData which indicates the type of information represented by the text string as described in https://www.w3.org/TR/PNG/#11keywords.
Declaration
public readonly string Keyword { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Examples
Typical properties are the author, copyright information or other meta information.
| Improve this Doc View SourceLanguageTag
Gets an optional language tag defined in https://www.w3.org/TR/PNG/#2-RFC-3066 indicates the human language used by the translated keyword and the text. If the first word is two or three letters long, it is an ISO language code https://www.w3.org/TR/PNG/#2-ISO-639.
Declaration
public readonly string LanguageTag { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Examples
Examples: cn, en-uk, no-bok, x-klingon, x-KlInGoN.
| Improve this Doc View SourceTranslatedKeyword
Gets an optional translated keyword, should contain a translation of the keyword into the language indicated by the language tag.
Declaration
public readonly string TranslatedKeyword { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Value
Gets the value of this PngTextData.
Declaration
public readonly string Value { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Methods
| Improve this Doc View SourceEquals(PngTextData)
Indicates whether the current object is equal to another object of the same type.
Declaration
public readonly bool Equals(PngTextData other)Parameters
| Type | Name | Description | 
|---|---|---|
| PngTextData | other | An object to compare with this object. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current object is equal to the  | 
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override readonly bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | The object to compare with the current instance. | 
Returns
| Type | Description | 
|---|---|
| Boolean | true if  | 
Overrides
| Improve this Doc View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override readonly int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | A 32-bit signed integer that is the hash code for this instance. | 
Overrides
| Improve this Doc View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override readonly string ToString()Returns
| Type | Description | 
|---|---|
| String | A String containing a fully qualified type name. | 
Overrides
Operators
| Improve this Doc View SourceEquality(PngTextData, PngTextData)
Compares two PngTextData objects. The result specifies whether the values of the properties of the two PngTextData objects are equal.
Declaration
public static bool operator ==(PngTextData left, PngTextData right)Parameters
| Type | Name | Description | 
|---|---|---|
| PngTextData | left | The PngTextData on the left side of the operand. | 
| PngTextData | right | The PngTextData on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is equal to the  | 
Inequality(PngTextData, PngTextData)
Compares two PngTextData objects. The result specifies whether the values of the properties of the two PngTextData objects are unequal.
Declaration
public static bool operator !=(PngTextData left, PngTextData right)Parameters
| Type | Name | Description | 
|---|---|---|
| PngTextData | left | The PngTextData on the left side of the operand. | 
| PngTextData | right | The PngTextData on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is unequal to the  |