Class LinkViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
ColorViewModel represents the rendering context used when a color is rendered.
public class LinkViewModel : ViewModelBase
- Inheritance
-
LinkViewModel
- Inherited Members
Properties
IsExternal
Gets or sets is the url external or not.
public bool IsExternal { get; set; }
Property Value
Remarks
Returns true if the URL is a link to another website, i.e. www.google.com.
Returns false if the URL is a page of the current website, i.e. Default.aspx?ID=123.
- See Also
PageId
Gets or sets the page id.
public int PageId { get; set; }
Property Value
- int
- the page id.
- See Also
ParagraphId
Gets or sets the paragraph id.
public int ParagraphId { get; set; }
Property Value
- int
- The paragraph id.
- See Also
Url
Gets or sets the url.
public string Url { get; set; }
Property Value
- string
- The url.
- See Also
Methods
GetPageOrLanguage(int)
Returns the language version id of the page if the link is an internal link
public int GetPageOrLanguage(int areaId)
Parameters
areaId
int- The areaid of the area of which the language should be found
Returns
- int
- The page with the specified id or its language version for the specified area. If a page with the Id is not found,
null
is returned. If areaid is not more than 0, exception will be thrown
- See Also
ToString()
Returns the string representation of model
public override string ToString()
Returns
- See Also