Go to the documentation of this file.00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using System.Configuration;
00006 using N2.Web.Drawing;
00007
00008 namespace N2.Configuration
00009 {
00010 public class ImageSizeElement : NamedElement
00011 {
00013 [ConfigurationProperty("width", DefaultValue = 0)]
00014 public int Width
00015 {
00016 get { return (int)base["width"]; }
00017 set { base["width"] = value; }
00018 }
00019
00021 [ConfigurationProperty("height", DefaultValue = 0)]
00022 public int Height
00023 {
00024 get { return (int)base["height"]; }
00025 set { base["height"] = value; }
00026 }
00027
00029 [ConfigurationProperty("replace", DefaultValue = false)]
00030 public bool Replace
00031 {
00032 get { return (bool)base["replace"]; }
00033 set { base["replace"] = value; }
00034 }
00035
00037 [ConfigurationProperty("resizeOnUpload", DefaultValue = true)]
00038 public bool ResizeOnUpload
00039 {
00040 get { return (bool)base["resizeOnUpload"]; }
00041 set { base["resizeOnUpload"] = value; }
00042 }
00043
00045 [ConfigurationProperty("mode", DefaultValue = ImageResizeMode.Fit)]
00046 public ImageResizeMode Mode
00047 {
00048 get { return (ImageResizeMode)base["mode"]; }
00049 set { base["mode"] = value; }
00050 }
00051 }
00052 }