Class ImageDescriptorAttribute
Represents the image descriptor attribute.
Inheritance
System.Object
ImageDescriptorAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ImageDescriptorAttribute : Attribute
Remarks
This attribute is used by page properties to specifiy the thumbnail image format. For example: width, height of the thumbnail image.
Constructors
ImageDescriptorAttribute()
Initializes a new instance of the ImageDescriptorAttribute class.
Declaration
public ImageDescriptorAttribute()
ImageDescriptorAttribute(Int32, Int32)
Initializes a new instance of the ImageDescriptorAttribute class.
Declaration
public ImageDescriptorAttribute(int height, int width)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | height | Thumbnail image height |
System.Int32 | width | Thumbnail image width |
Properties
Height
Gets, sets the thumbnail image height
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Pregenerated
If the thumbnail should be pregenerated when a new image is uploaded rather than when first requested
Declaration
public bool Pregenerated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Width
Gets, sets the thumbnail image width
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |