C# 클래스 Piranha.Drawing.Thumbnails

The thumbnails class handles all thumbnails to different types of content embedded in the core.
파일 보기 프로젝트 열기: PiranhaCMS/Piranha

공개 메소드들

메소드 설명
ContainsKey ( System.Guid id ) : bool

Gets whether the current thumbnail collection contains a thumbnail for the given thumbnail id.

ContainsKey ( string type ) : bool

Gets whether the current thumbnail collection contains a thumbnail for the given mime-type.

GetById ( System.Guid id ) : string

Gets the resource path for the thumbnail with the given id.

GetByType ( string type ) : string

Gets the resource path fo the thumbnail with the given mime-type.

GetIdByType ( string type ) : System.Guid

Gets the internal thumbnail id for the given mime-type.

비공개 메소드들

메소드 설명
Add ( System.Guid id, string type, string thumbnail ) : void

Adds a thumbnail resource with the given id and mime-type.

Ensure ( ) : void

Ensures that the thumbnail collection is created.

메소드 상세

ContainsKey() 공개 정적인 메소드

Gets whether the current thumbnail collection contains a thumbnail for the given thumbnail id.
public static ContainsKey ( System.Guid id ) : bool
id System.Guid The id
리턴 bool

ContainsKey() 공개 정적인 메소드

Gets whether the current thumbnail collection contains a thumbnail for the given mime-type.
public static ContainsKey ( string type ) : bool
type string The mime-type
리턴 bool

GetById() 공개 정적인 메소드

Gets the resource path for the thumbnail with the given id.
public static GetById ( System.Guid id ) : string
id System.Guid The id
리턴 string

GetByType() 공개 정적인 메소드

Gets the resource path fo the thumbnail with the given mime-type.
public static GetByType ( string type ) : string
type string The mime-type
리턴 string

GetIdByType() 공개 정적인 메소드

Gets the internal thumbnail id for the given mime-type.
public static GetIdByType ( string type ) : System.Guid
type string The mime-type
리턴 System.Guid