/// <summary> /// Retrieves all text chunks with a given key /// </summary> /// <param name="key">Key</param> /// <returns>Empty list if nothing found</returns> /// <remarks>Can mix tEXt zTXt and iTXt chunks</remarks> public List <PngChunkTextVar> GetTxtsForKey(String key) { List <PngChunkTextVar> li = new List <PngChunkTextVar>(); foreach (PngChunk c in chunkList.GetById(ChunkHelper.tEXt, key)) { li.Add((PngChunkTextVar)c); } foreach (PngChunk c in chunkList.GetById(ChunkHelper.zTXt, key)) { li.Add((PngChunkTextVar)c); } foreach (PngChunk c in chunkList.GetById(ChunkHelper.iTXt, key)) { li.Add((PngChunkTextVar)c); } return(li); }
public List <PngChunkTextVar> GetTxtsForKey(string key) { List <PngChunkTextVar> list = new List <PngChunkTextVar>(); foreach (PngChunk item in chunkList.GetById("tEXt", key)) { list.Add((PngChunkTextVar)item); } foreach (PngChunk item2 in chunkList.GetById("zTXt", key)) { list.Add((PngChunkTextVar)item2); } foreach (PngChunk item3 in chunkList.GetById("iTXt", key)) { list.Add((PngChunkTextVar)item3); } return(list); }
/// <summary> /// Retrieves all text chunks with a given key /// </summary> /// <param name="key">Key</param> /// <returns>Empty list if nothing found</returns> /// <remarks>Can mix tEXt zTXt and iTXt chunks</remarks> public List <AbstractPngChunkTextVar> GetTxtsForKey(string key) { var li = new List <AbstractPngChunkTextVar>(); foreach (var c in chunkList.GetById(ChunkHelper.tEXt, key)) { li.Add((AbstractPngChunkTextVar)c); } foreach (var c in chunkList.GetById(PngChunkZTXT.ID, key)) { li.Add((AbstractPngChunkTextVar)c); } foreach (var c in chunkList.GetById(ChunkHelper.iTXt, key)) { li.Add((AbstractPngChunkTextVar)c); } return(li); }