Class IptcValue
Represents a single value of the IPTC profile.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Iptc
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class IptcValue : IDeepCloneable<IptcValue>Properties
| Improve this Doc View SourceEncoding
Gets or sets the encoding to use for the Value.
Declaration
public Encoding Encoding { get; set; }Property Value
| Type | Description | 
|---|---|
| Encoding | 
Length
Gets the length of the value.
Declaration
public int Length { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
Strict
Gets or sets a value indicating whether to be enforce value length restrictions according to the specification.
Declaration
public bool Strict { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Tag
Gets the tag of the iptc value.
Declaration
public IptcTag Tag { get; }Property Value
| Type | Description | 
|---|---|
| IptcTag | 
Value
Gets or sets the value.
Declaration
public string Value { get; set; }Property Value
| Type | Description | 
|---|---|
| String | 
Methods
| Improve this Doc View SourceDeepClone()
Creates a new T that is a deep copy of the current instance.
Declaration
public IptcValue DeepClone()Returns
| Type | Description | 
|---|---|
| IptcValue | The  | 
Equals(IptcValue)
Determines whether the specified iptc value is equal to the current IptcValue.
Declaration
public bool Equals(IptcValue other)Parameters
| Type | Name | Description | 
|---|---|---|
| IptcValue | other | The iptc value to compare this IptcValue with. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True when the specified iptc value is equal to the current IptcValue. | 
Equals(Object)
Determines whether the specified object is equal to the current IptcValue.
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | The object to compare this IptcValue with. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True when the specified object is equal to the current IptcValue. | 
Overrides
| Improve this Doc View SourceGetHashCode()
Serves as a hash of this type.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | A hash code for the current instance. | 
Overrides
| Improve this Doc View SourceToByteArray()
Converts this instance to a byte array.
Declaration
public byte[] ToByteArray()Returns
| Type | Description | 
|---|---|
| Byte[] | A Byte array. | 
ToString()
Returns a string that represents the current value.
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| String | A string that represents the current value. | 
Overrides
| Improve this Doc View SourceToString(Encoding)
Returns a string that represents the current value with the specified encoding.
Declaration
public string ToString(Encoding encoding)Parameters
| Type | Name | Description | 
|---|---|---|
| Encoding | encoding | The encoding to use. | 
Returns
| Type | Description | 
|---|---|
| String | A string that represents the current value with the specified encoding. |