using System.Drawing;
using System.Windows.Forms;
namespace Microsoft.Windows.Forms
{
public partial class Sprite
{
private Image m_BackgroundImage = null;
///
/// 背景图
///
public Image BackgroundImage
{
get
{
return this.m_BackgroundImage;
}
set
{
if (value != this.m_BackgroundImage)
{
this.m_BackgroundImage = value;
this.Feedback();
}
}
}
private Image m_BackgroundImageHovered = null;
///
/// 鼠标移上背景图
///
public Image BackgroundImageHovered
{
get
{
return this.m_BackgroundImageHovered;
}
set
{
if (value != this.m_BackgroundImageHovered)
{
this.m_BackgroundImageHovered = value;
this.Feedback();
}
}
}
private Image m_BackgroundImagePressed = null;
///
/// 鼠标按下背景图
///
public Image BackgroundImagePressed
{
get
{
return this.m_BackgroundImagePressed;
}
set
{
if (value != this.m_BackgroundImagePressed)
{
this.m_BackgroundImagePressed = value;
this.Feedback();
}
}
}
private Image m_BackgroundImageFocused = null;
///
/// 获取焦点背景图
///
public Image BackgroundImageFocused
{
get
{
return this.m_BackgroundImageFocused;
}
set
{
if (value != this.m_BackgroundImageFocused)
{
this.m_BackgroundImageFocused = value;
this.Feedback();
}
}
}
private Image m_BackgroundImageDisabled = null;
///
/// 状态禁用背景图
///
public Image BackgroundImageDisabled
{
get
{
return this.m_BackgroundImageDisabled;
}
set
{
if (value != this.m_BackgroundImageDisabled)
{
this.m_BackgroundImageDisabled = value;
this.Feedback();
}
}
}
private Image m_BackgroundImageHighlight = null;
///
/// 高亮背景图
///
public Image BackgroundImageHighlight
{
get
{
return this.m_BackgroundImageHighlight;
}
set
{
if (value != this.m_BackgroundImageHighlight)
{
this.m_BackgroundImageHighlight = value;
this.Feedback();
}
}
}
private ImageLayout m_BackgroundImageLayout = ImageLayout.Tile;
///
/// 背景图布局方式
///
public ImageLayout BackgroundImageLayout
{
get
{
return this.m_BackgroundImageLayout;
}
set
{
if (value != this.m_BackgroundImageLayout)
{
this.m_BackgroundImageLayout = value;
this.Feedback();
}
}
}
private bool m_BackgroundImageGrayOnDisabled = false;
///
/// 状态禁用时背景图是否变灰
///
public bool BackgroundImageGrayOnDisabled
{
get
{
return this.m_BackgroundImageGrayOnDisabled;
}
set
{
if (value != this.m_BackgroundImageGrayOnDisabled)
{
this.m_BackgroundImageGrayOnDisabled = value;
this.Feedback();
}
}
}
}
}