Show / Hide Table of Contents

Class FormFactorConstraint

Represents a set of image constraints for a single image or form factor.

Inheritance
object
FormFactorConstraint
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: AdaptiveImages.Core
Assembly: AdaptiveImages.dll
Syntax
public class FormFactorConstraint

Constructors

FormFactorConstraint(IProportions?, ISizeConstraint?, FormFactor)

Creates a form factor constraint, optionally for a specific form factor.

Declaration
public FormFactorConstraint(IProportions? proportionsConstraint, ISizeConstraint? sizeConstraint, FormFactor formFactor = FormFactor.Large | FormFactor.Medium | FormFactor.Small)
Parameters
Type Name Description
IProportions proportionsConstraint
ISizeConstraint sizeConstraint
FormFactor formFactor

Properties

FormFactor

Gets or sets the form factor.

Declaration
public FormFactor FormFactor { get; set; }
Property Value
Type Description
FormFactor

ProportionsConstraint

Gets or sets proportions constraint.

Declaration
public IProportions? ProportionsConstraint { get; set; }
Property Value
Type Description
IProportions

SizeConstraint

Gets or sets size constraint.

Declaration
public ISizeConstraint? SizeConstraint { get; set; }
Property Value
Type Description
ISizeConstraint

Extension Methods

ImageExtensions.GetCultureSpecificImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetImageConstraints<TParent>(TParent, string)
ImageExtensions.GetImageConstraints<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetRequiredImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetSizeConstraint<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
☀
☾
In this article
Back to top
Documentation applies to: Adaptive Images 2.x
☀
☾