Class FieldValueViewModelExtensionMethods
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
public static class FieldValueViewModelExtensionMethods
- Inheritance
-
FieldValueViewModelExtensionMethods
- Inherited Members
Methods
GetColor(FieldValueViewModel)
Gets the color model.
public static ColorViewModel GetColor(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
- ColorViewModel
ColorViewModel if value kind is color
GetFile(FieldValueViewModel)
Gets the file model.
public static FileViewModel GetFile(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
- FileViewModel
FileViewModel if value type is file
GetLink(FieldValueViewModel)
Gets the link model.
public static LinkViewModel GetLink(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
- LinkViewModel
LinkViewModel if value type of Link
GetList(FieldValueViewModel)
Gets the file model.
public static List<FieldOptionValueViewModel> GetList(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
- List<FieldOptionValueViewModel>
FileViewModel if value type is file
GetValueWithUnits(FieldValueViewModel)
Returns the string representation of model
public static string GetValueWithUnits(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
IsColor(FieldValueViewModel)
Gets value indicated if the field value is color
public static bool IsColor(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
IsFile(FieldValueViewModel)
Gets value indicated if the field value is file
public static bool IsFile(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
IsLink(FieldValueViewModel)
Gets value indicated if the field value is link
public static bool IsLink(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel
Returns
IsList(FieldValueViewModel)
Gets value indicated if the field value is list
public static bool IsList(this FieldValueViewModel model)
Parameters
model
FieldValueViewModel