Table of Contents

Class ItemFieldViewModel

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll
ItemFieldViewModel represents the rendering context used when an item field is rendered.
public class ItemFieldViewModel : ViewModelBase
Inheritance
ItemFieldViewModel
Inherited Members

Constructors

ItemFieldViewModel(Func<object>)

Initializes a new instance of the ItemFieldViewModel class.
public ItemFieldViewModel(Func<object> valueFactory)

Parameters

valueFactory Func<object>
The model value factory.
See Also

Properties

Name

Gets or sets the name.
public string Name { get; set; }

Property Value

string
The name.
See Also

SystemName

Gets or sets the system name.
public string SystemName { get; set; }

Property Value

string
The system name.
See Also

Value

public object Value { get; }

Property Value

object
See Also

Methods

GetBoolean()

Gets the boolean.
public bool GetBoolean()

Returns

bool
true or false, which reflects the value stored in the field.
See Also

GetColor()

Gets the color.
public ColorViewModel GetColor()

Returns

ColorViewModel
ColorViewModel
See Also

GetDateTime()

Gets the date time.
public DateTime GetDateTime()

Returns

DateTime
System.DateTime.
See Also

GetDecimal()

Gets the decimal.
public decimal GetDecimal()

Returns

decimal
System.Decimal.
See Also

GetDouble()

Gets the double.
public double GetDouble()

Returns

double
System.Double.
See Also

GetFile()

Gets the file.
public FileViewModel GetFile()

Returns

FileViewModel
FileViewModel.
See Also

GetFiles()

Gets the files.
public IList<FileViewModel> GetFiles()

Returns

IList<FileViewModel>
IList(Of FileViewModel).
See Also

GetGeolocation()

Gets the geolocation.
public GeolocationViewModel GetGeolocation()

Returns

GeolocationViewModel
GeolocationViewModel.
See Also

GetGoogleFont()

Gets the Google font.
public GoogleFontViewModel GetGoogleFont()

Returns

GoogleFontViewModel
GoogleFontViewModel
See Also

GetInt32()

Gets the int32.
public int GetInt32()

Returns

int
System.Int32.
See Also

GetInt64()

Gets the int64.
public long GetInt64()

Returns

long
System.Int64.
See Also

GetItem()

Gets the item.
public ItemViewModel GetItem()

Returns

ItemViewModel
ItemViewModel.
See Also

GetItems()

Gets the items.
public IList<ItemViewModel> GetItems()

Returns

IList<ItemViewModel>
IList(Of ItemViewModel).
See Also
Gets the link.
public LinkViewModel GetLink()

Returns

LinkViewModel
LinkViewModel
See Also

GetList()

Gets the listViewModel.
public ListViewModel GetList()

Returns

ListViewModel
ListViewModel
See Also

GetRawValue()

Gets the raw unmodified value from the database without any parsing
public object GetRawValue()

Returns

object
An object of the values underlying database type. Int, String, Boolean etc. Never another viewmodel or object
See Also

GetRawValueString()

Gets the raw unmodified value from the database without any parsing but converted to string
public string GetRawValueString()

Returns

string
A string of the underlying raw value.
See Also

GetString()

Gets the string.
public string GetString()

Returns

string
System.String.
See Also

GetUsers()

Gets the users.
public IList<UserViewModel> GetUsers()

Returns

IList<UserViewModel>
IList(Of UserViewModel).
See Also

GetValue()

Gets the value.
public object GetValue()

Returns

object
System.Object.
See Also

GetValue<T>()

Gets the value.
public T GetValue<T>() where T : class

Returns

T
T.

Type Parameters

T
See Also

See Also

To top