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 System.Collections.Specialized;
00007 using System.ComponentModel;
00008
00009 namespace N2.Configuration
00010 {
00011 public class ImagesElement : ConfigurationElement
00012 {
00013 [ConfigurationProperty("resizeUploadedImages", DefaultValue = true)]
00014 public bool ResizeUploadedImages
00015 {
00016 get { return (bool)base["resizeUploadedImages"]; }
00017 set { base["resizeUploadedImages"] = value; }
00018 }
00019
00020 [ConfigurationProperty("resizedExtensions", DefaultValue = ".jpg,.jpeg"), TypeConverter(typeof(CommaDelimitedStringCollectionConverter))]
00021 public StringCollection ResizedExtensions
00022 {
00023 get { return (CommaDelimitedStringCollection)base["resizedExtensions"]; }
00024 set { base["resizedExtensions"] = value; }
00025 }
00026
00028 [ConfigurationProperty("sizes")]
00029 public ImageSizesCollection Sizes
00030 {
00031 get { return (ImageSizesCollection)base["sizes"]; }
00032 set { base["sizes"] = value; }
00033 }
00034 }
00035 }