Table of Contents

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

Encoding

Length

Gets the length of the value.

public int Length { get; }

Property Value

int

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

bool

Tag

Gets the tag of the iptc value.

public IptcTag Tag { get; }

Property Value

IptcTag

Value

Gets or sets the value.

public string Value { get; set; }

Property Value

string

Methods

DeepClone()

public IptcValue DeepClone()

Returns

IptcValue

Equals(IptcValue?)

Determines whether the specified iptc value is equal to the current IptcValue.

public bool Equals(IptcValue? other)

Parameters

other IptcValue

The iptc value to compare this IptcValue with.

Returns

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.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare this IptcValue with.

Returns

bool

True when the specified object is equal to the current IptcValue.

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

byte[]

A byte array.

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 Encoding

The encoding to use.

Returns

string

A string that represents the current value with the specified encoding.