Class IptcValue
- Namespace
- SixLabors.ImageSharp.Metadata.Profiles.Iptc
- Assembly
- SixLabors.ImageSharp.dll
Represents a single value of the IPTC profile.
public sealed class IptcValue : IDeepCloneable<IptcValue>
- Inheritance
-
IptcValue
- Implements
- Inherited Members
Properties
Encoding
Gets or sets the encoding to use for the Value.
public Encoding Encoding { get; set; }
Property Value
Length
Gets the length of the value.
public int Length { get; }
Property Value
Strict
Gets or sets a value indicating whether to be enforce value length restrictions according to the specification.
public bool Strict { get; set; }
Property Value
Tag
Gets the tag of the iptc value.
public IptcTag Tag { get; }
Property Value
Value
Gets or sets the value.
public string Value { get; set; }
Property Value
Methods
DeepClone()
public IptcValue DeepClone()
Returns
Equals(IptcValue?)
Determines whether the specified iptc value is equal to the current IptcValue.
public bool Equals(IptcValue? other)
Parameters
Returns
Equals(object?)
Determines whether the specified object is equal to the current IptcValue.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Serves as a hash of this type.
public override int GetHashCode()
Returns
- int
A hash code for the current instance.
ToByteArray()
Converts this instance to a byte array.
public byte[] ToByteArray()
Returns
ToString()
Returns a string that represents the current value.
public override string ToString()
Returns
- string
A string that represents the current value.
ToString(Encoding)
Returns a string that represents the current value with the specified encoding.
public string ToString(Encoding encoding)
Parameters
encoding
EncodingThe encoding to use.
Returns
- string
A string that represents the current value with the specified encoding.