Class IptcTagExtensions
Extension methods for IPTC tags.
Inherited Members
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Iptc
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class IptcTagExtensions
Methods
| Improve this Doc View SourceIsDate(IptcTag)
Determines if the tag is a datetime tag which needs to be formatted as CCYYMMDD.
Declaration
public static bool IsDate(this IptcTag tag)
Parameters
Type | Name | Description |
---|---|---|
IptcTag | tag | The tag to check. |
Returns
Type | Description |
---|---|
Boolean | True, if its a datetime tag. |
IsRepeatable(IptcTag)
Determines if the given tag can be repeated according to the specification.
Declaration
public static bool IsRepeatable(this IptcTag tag)
Parameters
Type | Name | Description |
---|---|---|
IptcTag | tag | The tag to check. |
Returns
Type | Description |
---|---|
Boolean | True, if the tag can occur multiple times. |
IsTime(IptcTag)
Determines if the tag is a time tag which need to be formatted as HHMMSS±HHMM.
Declaration
public static bool IsTime(this IptcTag tag)
Parameters
Type | Name | Description |
---|---|---|
IptcTag | tag | The tag to check. |
Returns
Type | Description |
---|---|
Boolean | True, if its a time tag. |
MaxLength(IptcTag)
Maximum length of the IPTC value with the given tag according to the specification.
Declaration
public static int MaxLength(this IptcTag tag)
Parameters
Type | Name | Description |
---|---|---|
IptcTag | tag | The tag to check the max length for. |
Returns
Type | Description |
---|---|
Int32 | The maximum length. |