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
| Edit this page 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 |
---|---|
int |
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 |
---|---|
bool |
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
| Edit this page View SourceDeepClone()
Creates a new IptcValue that is a deep copy of the current instance.
Declaration
public IptcValue DeepClone()
Returns
Type | Description |
---|---|
IptcValue | The IptcValue. |
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 |
---|---|
bool | 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 |
---|---|
bool | True when the specified object is equal to the current IptcValue. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as a hash of this type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current instance. |
Overrides
| Edit this page 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
| Edit this page 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. |