Guest

Exposing Custom Control Properties

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. public enum VerticalTextSide { Left, Right }
  2. public enum HorizontalTextSide { Top, Bottom }
  3. public enum TextSide { }
  4. public enum Orientation { Vertical, Horizontal }
  5.  
  6. private VerticalTextSide vts;
  7. private HorizontalTextSide hts;
  8. private TextSide db;
  9. private Orientation or;
  10.  
  11. public TextSide textSide
  12. {
  13.     get
  14.     {
  15.         if (or == Orientation.Vertical)
  16.         {
  17.             [need help!!]
  18.         }
  19.         else
  20.         {
  21.             [need help!!]
  22.         }
  23.     }
  24.     set
  25.     {
  26.         [need help!!]
  27.     }
  28.  }
  29.  
  30.  public Orientation orientation
  31.  {
  32.      get
  33.      {
  34.          return or;
  35.      }
  36.      set
  37.      {
  38.          or = value;
  39.      }
  40.  }