Table of Contents

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

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

string

IsColor(FieldValueViewModel)

Gets value indicated if the field value is color

public static bool IsColor(this FieldValueViewModel model)

Parameters

model FieldValueViewModel

Returns

bool

IsFile(FieldValueViewModel)

Gets value indicated if the field value is file

public static bool IsFile(this FieldValueViewModel model)

Parameters

model FieldValueViewModel

Returns

bool

Gets value indicated if the field value is link

public static bool IsLink(this FieldValueViewModel model)

Parameters

model FieldValueViewModel

Returns

bool

IsList(FieldValueViewModel)

Gets value indicated if the field value is list

public static bool IsList(this FieldValueViewModel model)

Parameters

model FieldValueViewModel

Returns

bool
To top