ToList
Leave feedback
On this page
Creates a list from the package.
public IReadOnlyList<TiffTag> ToList()
A list that contains all TIFF tags from the package.
This example demonstrates how to read all EXIF tags extracted from a file.
using (Metadata metadata = new Metadata(Constants.JpegWithExif))
{
IExif root = metadata.GetRootPackage() as IExif;
if (root != null && root.ExifPackage != null)
{
const string pattern = "{0} = {1}";
foreach (TiffTag tag in root.ExifPackage.ToList())
{
Console.WriteLine(pattern, tag.TagID, tag.Value);
}
foreach (TiffTag tag in root.ExifPackage.ExifIfdPackage.ToList())
{
Console.WriteLine(pattern, tag.TagID, tag.Value);
}
foreach (TiffTag tag in root.ExifPackage.GpsPackage.ToList())
{
Console.WriteLine(pattern, tag.TagID, tag.Value);
}
}
}
- interface IReadOnlyList<T>
- class TiffTag
- class ExifDictionaryBasePackage
- namespace GroupDocs.Metadata.Standards.Exif
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.