C# Class TagLib.Tag

This abstract class provides generic access to standard tag features. All tag types will extend this class.
Because not every tag type supports the same features, it may be useful to check that the value is stored by re-reading the property after it is stored.
Mostra file Open project: rubenv/tripod Class Usage Examples

Private Properties

Property Type Description
Duplicate void
FirstInGroup string
IsNullOrLikeEmpty bool
JoinGroup string

Public Methods

Method Description
Clear ( ) : void

Clears the values stored in the current instance.

The clearing procedure is format specific and should clear all values.

CopyTo ( Tag target, bool overwrite ) : void

Copies the values from the current instance to another TagLib.Tag, optionally overwriting existing values.

This method only copies the most basic values when copying between different tag formats, however, if target is of the same type as the current instance, more advanced copying may be done. For example, TagLib.Id3v2.Tag will copy all of its frames to another tag.

Private Methods

Method Description
Duplicate ( Tag source, Tag target, bool overwrite ) : void
FirstInGroup ( string group ) : string

Gets the first string in an array.

IsNullOrLikeEmpty ( string value ) : bool

Checks if a string is or contains only whitespace characters.

JoinGroup ( string group ) : string

Joins a array of strings into a single, semicolon separated, string.

Method Details

Clear() public abstract method

Clears the values stored in the current instance.
The clearing procedure is format specific and should clear all values.
public abstract Clear ( ) : void
return void

CopyTo() public method

Copies the values from the current instance to another TagLib.Tag, optionally overwriting existing values.

This method only copies the most basic values when copying between different tag formats, however, if target is of the same type as the current instance, more advanced copying may be done. For example, TagLib.Id3v2.Tag will copy all of its frames to another tag.

/// is . ///
public CopyTo ( Tag target, bool overwrite ) : void
target Tag /// A object containing the target tag to /// copy values to. ///
overwrite bool /// A specifying whether or not to copy /// values over existing one. ///
return void