Click or drag to resize

Tag Class

Encapsulates all v2.x and v1.x tag and frame information parsed from a file.
Inheritance Hierarchy
SystemObject
  Orthogonal.NTagLiteTag

Namespace: Orthogonal.NTagLite
Assembly: Orthogonal.NTagLite (in Orthogonal.NTagLite.dll) Version: 3.0.4
Syntax
C#
public class Tag

The Tag type exposes the following members.

Constructors
 NameDescription
Public methodTag Constructs a Tag from a Stream.
Top
Properties
 NameDescription
Public propertyAlbum Convenience property: Gets or sets the Album in a TALB frame.
Public propertyArtist Convenience property: Gets or sets the Artist in a TPE1 frame.
Public propertyArtistWebPage Convenience property: Gets or sets the ArtistWebPage in a WOAR frame.
Public propertyBand Convenience property: Gets or sets the Band in a TPE2 frame.
Public propertyComment Convenience property: Gets or sets the Comment in a COMM frame.
Public propertyComposer Convenience property: Gets or sets the Composer in a TCOM frame.
Public propertyConductor Convenience property: Gets or sets the Conductor in a TPE3 frame.
Public propertyCopyright Convenience property: Gets or sets the Copyright in a TCOP frame.
Public propertyCopyrightWebPage Convenience property: Gets or sets the CopyrightWebPage in a WCOP frame.
Public propertyEncodedBy Convenience property: Gets or sets the EncodedBy in a TENC frame.
Public propertyFlags Gets the flags byte in the ID3 tag header.
Public propertyFrameCount Gets the total number of frames in the tag.
Public propertyFrames Gets a read only collection of all frames in the tag.
Public propertyGenre Convenience property: Gets or sets the Genre in a TCON frame.
Public propertyHasExtendedHeader See ID3 v2.3 section 3.1 'b' (Extended header flag bit)
Public propertyHasFooter See ID3 v2.4 section 3.1 'd' (footer present flag bit)
Public propertyId Gets the string identifier of the ID3 tag header (expected to be 'ID3').
Public propertyIsCompressed See ID3 v2.2 section 3.1 'a' (compression flag bit)
Public propertyIsExperimental See ID3 v2.3 and v2.4 section 3.1 'c' (Experimental flag bit)
Public propertyIsUnsynchronised See ID3 v2.2, v2.3 and v2.4 section 3.1 'a' (Unsynchronisation flag bit)
Public propertyLyricist Convenience property: Gets or sets the Lyricist in a TEXT frame.
Public propertyMajorVersion Gets the first version number in the ID3 tagheader (only 2, 3 and 4 are supported).
Public propertyMedia Convenience property: Gets or sets the Media in a TMED frame.
Public propertyMinorVersion Gets the second version number in the ID3 tag header (the library ignores this value).
Public propertyOriginalArtist Convenience property: Gets or sets the OriginalArtist in a TOPE frame.
Public propertyOriginalLyricist Convenience property: Gets or sets the OriginalLyricist in a TOLY frame.
Public propertyOriginalTitle Convenience property: Gets or sets the OriginalTitle in a TOAL frame.
Public propertyOtherWebPage Convenience property: Gets or sets the OtherWebPage in a WXXX frame.
Public propertyOwner Convenience property: Gets or sets the Owner in a TOWN frame.
Public propertyPublisher Convenience property: Gets or sets the Publisher in a TPUB frame.
Public propertyRating Convenience property: Gets or sets the rating as a value from 0-255.
Public propertyRawSizeBytes Gets the raw synchsafe bytes specifying the ID3 tag size.
Public propertySize Gets the size of the ID3 after decoding the raw synchsafe size bytes. The size includes all frames and padding.
Public propertyTextFrames Gets an enumerable set of all text frames in the tag.
Public propertyTextOrUrlFrames Gets an enumerable set of all text or url frames in the tag.
Public propertyTitle Convenience property: Gets or sets the Title in a TIT2 frame.
Public propertyTrackCount Convenience property: Gets or sets the track count in a TRCK frame.
Public propertyTrackNumber Convenience property: Gets or sets the track number in a TRCK frame.
Public propertyUnsynchedLyrics Convenience property: Gets or sets the UnsynchedLyrics in a USLT frame.
Public propertyUrlFrames Gets an enumerable set of all url frames in the tag.
Public propertyUserText Convenience property: Gets or sets the UserText in a TXXX frame.
Public propertyV1Offset Gets the offset into the file where the V1 tag was found.
Public propertyV1TagFound Gets a flag indicating if a V1 tag was found at the end of the file.
Public propertyV2TagFound Gets a flag indicating if a V2 tag was found at the start of the file.
Public propertyYear Convenience property: Gets or sets the year in a TYER frame.
Top
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