Click or drag to resize

Tag Methods

The Tag type exposes the following members.

Methods
 NameDescription
Public methodAddFrame(Frame) Adds a frame to the tag, safely avoiding invalid duplicates. If the frame being added is contrained so that only one with the ID is allowed in a tag, then any previous frames of the same ID are removed before the new one is added.
Public methodAddFrame(FrameId, Byte) Safely adds an arbitrary frame constructed from an ID and raw data.
Public methodAddLangTextFrame Safely adds a text frame constructed by an ID, a language and text.
Public methodAddPictureFrame(LitePictureType, String, String) Safely adds a picture frame constructed by a type, a description and a file name that will be read to provide the picture data buffer.
Public methodAddPictureFrame(LitePictureType, String, String, Byte) Safely adds a picture frame constructed by a type, a description and a picture data buffer.
Public methodAddTextFrame(FrameId, String) Safely adds a text frame constructed by an ID and text.
Public methodAddTextFrame(FrameId, String, String) Safely adds a text frame constructed by an ID, a description and text.
Public methodAddTextFrame(FrameId, NullableIsoLanguage, String, String) Safely adds a text frame constructed by an ID, a language, a description and text.
Public methodAddTrackFrame Safely adds a track frame constructed by a track number and optional track count.
Public methodAddUrlFrame(FrameId, String) Safely adds a url frame constructed by an ID and a Latin ISO encoded url.
Public methodAddUrlFrame(FrameId, String, String) Safely adds a url frame constructed by an ID, a description and a Latin ISO encoded url.
Public methodAddYearFrame Safely adds a year frame.
Public methodFindFirstFrameById Finds the first frame with a specified Frame ID. Returns null if no frame is found.
Public methodFindFramesById Finds all frames with a specified Frame ID. The returned array may be zero length, not null.
Public methodMergeV1Tag Information from the V1 tag is added to the frame collection if frames with the same information type do not already exist.
Public methodRemoveAll Removes all frames from the Tag.
Public methodRemoveAllFramesById Removes all frames of a specified ID.
Public methodRemoveFirstFrameById Safely removes a frame of a specified ID if one exists. If there are multiples of the same ID then the first one found is removed.
Public methodRemoveFrame Removes a specific frame from the frames.
Public methodSaveToBuffer Writes (serializes) the Tag to a byte array.
Public methodSaveToStream Writes (serializes) a Tag and its frames to a stream. The Stream to write the tag to.The caller tells us the desired size of the tag. If the tag takes less space than this value then padding zero-filled bytes are appended to make the desired size.
Public methodSortFrames Sorts the frames using a comparison rule determined by the caller.
Public methodV1ToStream A V1 tag is written to the stream with fields completed if they have corresponding Frames.
Top
See Also