C# Class SharpVectors.Dom.Stylesheets.MediaList

The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. An empty list is the same as a list that contains the medium "all". The items in the MediaList are accessible via an integral index, starting from 0.
Inheritance: IMediaList
Afficher le fichier Open project: codebutler/savagesvg Class Usage Examples

Méthodes publiques

Méthode Description
AppendMedium ( string newMedium ) : void

Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.

DeleteMedium ( string oldMedium ) : void

Deletes the medium indicated by oldMedium from the list.

Matches ( MediaList inMedia ) : bool

Compares this MediaList with another and see if the second fits this

MediaList ( ) : System
MediaList ( string val ) : System
this ( ulong index ) : string

Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.

Private Methods

Méthode Description
_clear ( ) : void
_parseString ( string mediaText ) : void

Method Details

AppendMedium() public méthode

Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.
INVALID_CHARACTER_ERR: If the medium contains characters that are invalid in the underlying style language. NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly.
public AppendMedium ( string newMedium ) : void
newMedium string The new medium to add.
Résultat void

DeleteMedium() public méthode

Deletes the medium indicated by oldMedium from the list.
NOT_FOUND_ERR: Raised if oldMedium is not in the list. NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly.
public DeleteMedium ( string oldMedium ) : void
oldMedium string The medium to delete in the media list.
Résultat void

Matches() public méthode

Compares this MediaList with another and see if the second fits this
public Matches ( MediaList inMedia ) : bool
inMedia MediaList The MediaList to compare
Résultat bool

MediaList() public méthode

public MediaList ( ) : System
Résultat System

MediaList() public méthode

public MediaList ( string val ) : System
val string
Résultat System

this() public méthode

Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.
public this ( ulong index ) : string
index ulong
Résultat string