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
Properties
Name
Gets or sets the name.
public string? Name { get; set; }
Property Value
- string
The name.
SystemName
Gets or sets the system name.
public string? SystemName { get; set; }
Property Value
- string
The system name.
Value
public object? Value { get; }
Property Value
Methods
GetBoolean()
Gets the boolean.
public bool GetBoolean()
Returns
- bool
trueorfalse, which reflects the value stored in the field.
GetButton()
Gets the button.
public ButtonViewModel? GetButton()
Returns
GetColor()
Gets the color.
public ColorViewModel? GetColor()
Returns
- ColorViewModel
ColorViewModel
GetDateTime()
Gets the date time.
public DateTime GetDateTime()
Returns
- DateTime
System.DateTime.
GetDecimal()
Gets the decimal.
public decimal GetDecimal()
Returns
- decimal
System.Decimal.
GetDouble()
Gets the double.
public double GetDouble()
Returns
- double
System.Double.
GetFile()
Gets the file.
public FileViewModel? GetFile()
Returns
- FileViewModel
FileViewModel.
GetFiles()
Gets the files.
public IList<FileViewModel> GetFiles()
Returns
- IList<FileViewModel>
IList(Of FileViewModel).
GetGeolocation()
Gets the geolocation.
public GeolocationViewModel? GetGeolocation()
Returns
- GeolocationViewModel
GeolocationViewModel.
GetGoogleFont()
Gets the Google font.
public GoogleFontViewModel? GetGoogleFont()
Returns
- GoogleFontViewModel
GoogleFontViewModel
GetInt32()
Gets the int32.
public int GetInt32()
Returns
- int
System.Int32.
GetInt64()
Gets the int64.
public long GetInt64()
Returns
- long
System.Int64.
GetItem()
Gets the item.
public ItemViewModel? GetItem()
Returns
- ItemViewModel
ItemViewModel.
GetItems()
Gets the items.
public IList<ItemViewModel> GetItems()
Returns
- IList<ItemViewModel>
IList(Of ItemViewModel).
GetLink()
Gets the link.
public LinkViewModel? GetLink()
Returns
GetList()
Gets the listViewModel.
public ListViewModel? GetList()
Returns
- ListViewModel
ListViewModel
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
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.
GetString()
Gets the string.
public string? GetString()
Returns
- string
System.String.
GetUser()
Gets the user
public UserViewModel? GetUser()
Returns
GetUserGroup()
Gets the user group.
public UserGroupViewModel? GetUserGroup()
Returns
GetUserGroups()
Gets the user groups.
public IList<UserGroupViewModel> GetUserGroups()
Returns
- IList<UserGroupViewModel>
A collection of UserGroupViewModel.
GetUsers()
Gets the users.
public IList<UserViewModel> GetUsers()
Returns
- IList<UserViewModel>
A collection of UserViewModel.
GetValue()
Gets the value.
public object? GetValue()
Returns
- object
System.Object.
GetValue<T>()
Gets the value.
public T? GetValue<T>() where T : class
Returns
- T
T.
Type Parameters
T
GetVideo()
Gets the video.
public VideoViewModel? GetVideo()