Skip to main content
Version: 4.1

IImageExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the IImage interface.

public class IImageExtensions

Methods

Static member Image<TImage>(target, value)

Sets the image for the specified target.

ParameterTypeDescription
TImageThe type of the target, which must implement IImage.
targetTImageThe target object on which to set the image.
valueImageThe image to set.

Returns: TImage. The target object with the updated image.

Static member ImageAlign<TImage>(target, value)

Sets the image alignment for the specified target.

ParameterTypeDescription
TImageThe type of the target, which must implement IImage.
targetTImageThe target object on which to set the image alignment.
valueContentAlignmentThe image alignment to set.

Returns: TImage. The target object with the updated image alignment.

Static member ImageIndex<TImage>(target, value)

Sets the image index for the specified target.

ParameterTypeDescription
TImageThe type of the target, which must implement IImage.
targetTImageThe target object on which to set the image index.
valueInt32The image index to set.

Returns: TImage. The target object with the updated image index.

Static member ImageKey<TImage>(target, value)

Sets the image key for the specified target.

ParameterTypeDescription
TImageThe type of the target, which must implement IImage.
targetTImageThe target object on which to set the image key.
valueStringThe image key to set.

Returns: TImage. The target object with the updated image key.

Static member ImageList<TImage>(target, value)

Sets the image list for the specified target.

ParameterTypeDescription
TImageThe type of the target, which must implement IImage.
targetTImageThe target object on which to set the image list.
valueImageListThe image list to set.

Returns: TImage. The target object with the updated image list.

Static member ImageSource<TImage>(target, value)

Sets the image source for the specified target.

ParameterTypeDescription
TImageThe type of the target, which must implement IImage.
targetTImageThe target object on which to set the image source.
valueStringThe image source to set.

Returns: TImage. The target object with the updated image source.