C# 클래스 Skybrud.LinkPicker.LinkPickerItem

Class representing a single link item.
파일 보기 프로젝트 열기: skybrud/Skybrud.LinkPicker 1 사용 예제들

Private Properties

프로퍼티 타입 설명
LinkPickerItem System

공개 메소드들

메소드 설명
GetFromContent ( IPublishedContent content ) : LinkPickerItem

Initializes a new link picker item from an instance of IPublishedContent representing a content item.

GetFromMedia ( IPublishedContent media ) : LinkPickerItem

Initializes a new link picker item from an instance of IPublishedContent representing a media item.

GetFromUrl ( string url, string name = null, string target = null ) : LinkPickerItem

Initializes a new link picker item from the specified url, name and target.

LinkPickerItem ( int id, string name, string url, string target, LinkPickerMode mode ) : System

Initializes a new link picker item.

Parse ( Newtonsoft.Json.Linq.JObject obj ) : LinkPickerItem

Parses the specified obj into an instance of LinkPickerItem.

보호된 메소드들

메소드 설명
GetCalculatedUrl ( ) : string

비공개 메소드들

메소드 설명
LinkPickerItem ( ) : System

메소드 상세

GetCalculatedUrl() 보호된 메소드

protected GetCalculatedUrl ( ) : string
리턴 string

GetFromContent() 공개 정적인 메소드

Initializes a new link picker item from an instance of IPublishedContent representing a content item.
public static GetFromContent ( IPublishedContent content ) : LinkPickerItem
content IPublishedContent An instance of representing a content item.
리턴 LinkPickerItem

GetFromMedia() 공개 정적인 메소드

Initializes a new link picker item from an instance of IPublishedContent representing a media item.
public static GetFromMedia ( IPublishedContent media ) : LinkPickerItem
media IPublishedContent An instance of representing a media item.
리턴 LinkPickerItem

GetFromUrl() 공개 정적인 메소드

Initializes a new link picker item from the specified url, name and target.
public static GetFromUrl ( string url, string name = null, string target = null ) : LinkPickerItem
url string The URL of the link.
name string The name (text) of the link.
target string The target of the link.
리턴 LinkPickerItem

LinkPickerItem() 공개 메소드

Initializes a new link picker item.
public LinkPickerItem ( int id, string name, string url, string target, LinkPickerMode mode ) : System
id int The ID of the content or media item.
name string The name (text) of the link.
url string The URL of the link.
target string The target of the link.
mode LinkPickerMode The mode of the link - either , /// or .
리턴 System

Parse() 공개 정적인 메소드

Parses the specified obj into an instance of LinkPickerItem.
public static Parse ( Newtonsoft.Json.Linq.JObject obj ) : LinkPickerItem
obj Newtonsoft.Json.Linq.JObject The instance of to be parsed.
리턴 LinkPickerItem