⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itemlook.cs

📁 ComponentArt Web.UI 2006.1252 for asp.net2.0
💻 CS
📖 第 1 页 / 共 3 页
字号:
      {
        if (value.Type == UnitType.Pixel)
        {
          if(FlatObject)
          {
            _rightIconHeight = value;
          }
          else if (this.Item != null)
          {
            this.SetProperty("RightIconHeight", value.ToString());
          }
          else
          {
            m_oProperties["RightIconHeight"] = value.ToString();
          }
        }
        else
        {
          throw new Exception("Icon dimensions may only be specified in pixels.");
        }
      }
    }

    private string _rightIconUrl;
    /// <summary>
    /// The URL of the right icon to use in this look.
    /// </summary>
    [DefaultValue(null)]
    public string RightIconUrl
    {
      get
      {
        if(FlatObject)
        {
          return _rightIconUrl;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("RightIconUrl");
        }
        else
        {
          return (string)m_oProperties["RightIconUrl"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _rightIconUrl = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("RightIconUrl", value);
        }
        else
        {
          m_oProperties["RightIconUrl"] = value;
        }
      }
    }
    
    private Unit _rightIconWidth;
    /// <summary>
    /// The width of the right icon.
    /// </summary>
    [DefaultValue(typeof(Unit),"")]
    public Unit RightIconWidth
    {
      get
      {
        if(FlatObject)
        {
          return _rightIconWidth;
        }
        else if (this.Item != null)
        {
          return Utils.ParseUnit(this.GetProperty("RightIconWidth"));
        }
        else
        {
          return Utils.ParseUnit(m_oProperties["RightIconWidth"]);
        }
      }
      set
      {
        if (value.Type == UnitType.Pixel)
        {
          if(FlatObject)
          {
            _rightIconWidth = value;
          }
          else if (this.Item != null)
          {
            this.SetProperty("RightIconWidth", value.ToString());
          }
          else
          {
            m_oProperties["RightIconWidth"] = value.ToString();
          }
        }
        else
        {
          throw new Exception("Icon dimensions may only be specified in pixels.");
        }
      }
    }

    private Unit _imageHeight;
    /// <summary>
    /// The height of the image.
    /// </summary>
    [DefaultValue(typeof(Unit),"")]
    public Unit ImageHeight
    {
      get
      {
        if(FlatObject)
        {
          return _imageHeight;
        }
        else if (this.Item != null)
        {
          return Utils.ParseUnit(this.GetProperty("ImageHeight"));
        }
        else
        {
          return Utils.ParseUnit(m_oProperties["ImageHeight"]);
        }
      }
      set
      {
        if (value.Type == UnitType.Pixel || value.Type == UnitType.Percentage)
        {
          if(FlatObject)
          {
            _imageHeight = value;
          }
          else if (this.Item != null)
          {
            this.SetProperty("ImageHeight", value.ToString());
          }
          else
          {
            m_oProperties["ImageHeight"] = value.ToString();
          }
        }
        else
        {
          throw new Exception("Image dimensions may only be specified in pixels or percentages.");
        }
      }
    }

    private Unit _imageWidth;
    /// <summary>
    /// The width of the image.
    /// </summary>
    [DefaultValue(typeof(Unit),"")]
    public Unit ImageWidth
    {
      get
      {
        if(FlatObject)
        {
          return _imageWidth;
        }
        else if (this.Item != null)
        {
          return Utils.ParseUnit(this.GetProperty("ImageWidth"));
        }
        else
        {
          return Utils.ParseUnit(m_oProperties["ImageWidth"]);
        }
      }
      set
      {
        if (value.Type == UnitType.Pixel || value.Type == UnitType.Percentage)
        {
          if(FlatObject)
          {
            _imageWidth = value;
          }
          else if (this.Item != null)
          {
            this.SetProperty("ImageWidth", value.ToString());
          }
          else
          {
            m_oProperties["ImageWidth"] = value.ToString();
          }
        }
        else
        {
          throw new Exception("Image dimensions may only be specified in pixels or percentages.");
        }
      }
    }

    private string _imageUrl;
    /// <summary>
    /// The URL of the image to use in this look.
    /// </summary>
    [DefaultValue(null)]
    public string ImageUrl
    {
      get
      {
        if(FlatObject)
        {
          return _imageUrl;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("ImageUrl");
        }
        else
        {
          return (string)m_oProperties["ImageUrl"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _imageUrl = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("ImageUrl", value);
        }
        else
        {
          m_oProperties["ImageUrl"] = value;
        }
      }
    }

    private string _hoverCssClass;
    /// <summary>
    /// The CSS class to use for this look on hover.
    /// </summary>
    [DefaultValue(null)]
    public string HoverCssClass
    {
      get
      {
        if(FlatObject)
        {
          return _hoverCssClass;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("HoverCssClass");
        }
        else
        {
          return (string)m_oProperties["HoverCssClass"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _hoverCssClass = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("HoverCssClass", value);
        }
        else
        {
          m_oProperties["HoverCssClass"] = value;
        }
      }
    }

    private string _hoverLeftIconUrl;
    /// <summary>
    /// The left icon to use for this look on hover.
    /// </summary>
    [DefaultValue(null)]
    public string HoverLeftIconUrl
    {
      get
      {
        if(FlatObject)
        {
          return _hoverLeftIconUrl;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("HoverLeftIconUrl");
        }
        else
        {
          return (string)m_oProperties["HoverLeftIconUrl"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _hoverLeftIconUrl = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("HoverLeftIconUrl", value);
        }
        else
        {
          m_oProperties["HoverLeftIconUrl"] = value;
        }
      }
    }

    private string _hoverRightIconUrl;
    /// <summary>
    /// The right icon to use for this look on hover.
    /// </summary>
    [DefaultValue(null)]
    public string HoverRightIconUrl
    {
      get
      {
        if(FlatObject)
        {
          return _hoverRightIconUrl;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("HoverRightIconUrl");
        }
        else
        {
          return (string)m_oProperties["HoverRightIconUrl"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _hoverRightIconUrl = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("HoverRightIconUrl", value);
        }
        else
        {
          m_oProperties["HoverRightIconUrl"] = value;
        }
      }
    }
    
    private string _hoverImageUrl;
    /// <summary>
    /// The image to use in this look on hover.
    /// </summary>
    [DefaultValue(null)]
    public string HoverImageUrl
    {
      get
      {
        if(FlatObject)
        {
          return _hoverImageUrl;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("HoverImageUrl");
        }
        else
        {
          return (string)m_oProperties["HoverImageUrl"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _hoverImageUrl = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("HoverImageUrl", value);
        }
        else
        {
          m_oProperties["HoverImageUrl"] = value;
        }
      }
    }

    private string _activeCssClass;
    /// <summary>
    /// The CSS class to use in this look, when active/highlighted (ie. on mouse over, or keyboard highlight).
    /// </summary>
    [DefaultValue(null)]
    public string ActiveCssClass
    {
      get
      {
        if(FlatObject)
        {
          return _activeCssClass;
        }
        else if(this.Item != null)
        {
          return this.GetProperty("ActiveCssClass");
        }
        else
        {
          return (string)m_oProperties["ActiveCssClass"];
        }
      }
      set
      {
        if(FlatObject)
        {
          _activeCssClass = value;
        }
        else if(this.Item != null)
        {
          this.SetProperty("ActiveCssClass", value);
        }
        else
        {
          m_oProperties["ActiveCssClass"] = value;
        }
      }
    }

    private string _activeLeftIconUrl;
    /// <summary>
    /// The left icon to use in this look, when active.
    /// </summary>
    [DefaultValue(null)]
    public string ActiveLeftIconUrl
    {
      get

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -