C# Класс 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.
Наследование: IMediaList
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
_clear ( ) : void
_parseString ( string mediaText ) : void

Описание методов

AppendMedium() публичный Метод

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.
Результат void

DeleteMedium() публичный Метод

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.
Результат void

Matches() публичный Метод

Compares this MediaList with another and see if the second fits this
public Matches ( MediaList inMedia ) : bool
inMedia MediaList The MediaList to compare
Результат bool

MediaList() публичный Метод

public MediaList ( ) : System
Результат System

MediaList() публичный Метод

public MediaList ( string val ) : System
val string
Результат System

this() публичный Метод

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
Результат string