Class VariantOption
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
A variant option in a variant group.
- Inheritance
-
Variant
Option
- Implements
- Inherited Members
Constructors
VariantOption()
Initializes a new instance of the Variant
Properties
Color
Gets or sets the color.
Property Value
GroupId
Gets or sets the group id.
Property Value
Icon
Gets or sets the icon.
Property Value
Id
Gets or sets the id.
Property Value
LargeImage
Gets or sets the large image.
Property Value
MediumImage
Gets or sets the medium image.
Property Value
SmallImage
Gets or sets the small image.
Property Value
SortOrder
Gets or sets the sort order.
Property Value
Translations
Gets the translations
Property Value
Methods
Clone()
Clones this instance.
Returns
- Variant
Option The instance of the Variant
Option .
CompareTo(VariantOption?)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Parameters
otherVariantOption An object to compare with this instance.
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.
Equals(object?)
Determines whether the specified object is equal to the current object.
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
GetName(string)
Gets the name of the variant option for the given language.
Parameters
languageIdstringLanguage id
Returns
GetPropertyValue(string, string)
Gets property value for the given language
Parameters
Returns
SetName(string, string)
Sets the name of the variant option for the given language.
Parameters
Operators
operator ==(VariantOption, VariantOption)
Parameters
leftVariantOption rightVariantOption
Returns
operator >(VariantOption, VariantOption)
Parameters
leftVariantOption rightVariantOption
Returns
operator >=(VariantOption, VariantOption)
Parameters
leftVariantOption rightVariantOption
Returns
operator !=(VariantOption, VariantOption)
Parameters
leftVariantOption rightVariantOption
Returns
operator <(VariantOption, VariantOption)
Parameters
leftVariantOption rightVariantOption
Returns
operator <=(VariantOption, VariantOption)
Parameters
leftVariantOption rightVariantOption