C# Class Skybrud.LinkPicker.LinkPickerItem

Class representing a single link item.
Afficher le fichier Open project: skybrud/Skybrud.LinkPicker Class Usage Examples

Private Properties

Свойство Type Description
LinkPickerItem System

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
GetCalculatedUrl ( ) : string

Private Methods

Méthode Description
LinkPickerItem ( ) : System

Method Details

GetCalculatedUrl() protected méthode

protected GetCalculatedUrl ( ) : string
Résultat string

GetFromContent() public static méthode

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.
Résultat LinkPickerItem

GetFromMedia() public static méthode

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.
Résultat LinkPickerItem

GetFromUrl() public static méthode

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.
Résultat LinkPickerItem

LinkPickerItem() public méthode

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 .
Résultat System

Parse() public static méthode

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.
Résultat LinkPickerItem