title: Design Time Attribute For CSS Class in ASP.net Custom Server Control
body: <p>Hopefully some Custom Control Designers/Builders can help</p>
  
  <p>I'm attempting to build my first custom control that is essential a client detail collection form. There are to be a series of elements to this form that require various styles applied to them. Ideally I'd like the VS 2005/2008 properties interface to be able to apply the CSSClass as it does at the control level, i.e. with a dropdown list of available CSS Clases.</p>
  
  <p>Take for example the Class to be applied to the legend tag</p>
  
  <pre><code>/// &lt;summary&gt;Css Class for Legend&lt;/summary&gt;
  [Category("Appearance")]
  [Browsable(true)]
  [DefaultValue("")]
  //I am at a loss as to what goes in [Editor]
  [Editor(System.Web.UI.CssStyleCollection), typeof(System.Drawing.Design.UITypeEditor))]        
   public string LegendCSSClass
      {
          get { return _LegendCSSClass; }
          set { _LegendCSSClass = value; }
      }
  </code></pre>
  
  <p>I have tried a couple of options, as you can see from above, without much luck.</p>
  
  <p>Hopefully there is something simple I am missing.</p>
  
  <p>I'd also be happy for references pertaining to the <pre><code>[Editor]</code></pre> attribute</p>