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
파일 보기 프로젝트 열기: codebutler/savagesvg 1 사용 예제들

공개 메소드들

메소드 설명
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