ab56a9bcf7
SVN-Revision: r240
46 lines
966 B
C#
46 lines
966 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
|
|
namespace MyFormDesinger
|
|
{
|
|
public class ControlParentProperty
|
|
{
|
|
private Control ctr;
|
|
public ControlParentProperty() { }
|
|
|
|
public ControlParentProperty(Control _ctr)
|
|
{
|
|
this.ctr = _ctr;
|
|
}
|
|
|
|
private int width;
|
|
[Description("宽度")]
|
|
[DisplayName("宽度")]
|
|
public int Width
|
|
{
|
|
get { return width; }
|
|
set
|
|
{
|
|
width = value;
|
|
ctr.Width = value;
|
|
}
|
|
}
|
|
private int height;
|
|
[Description("高度")]
|
|
[DisplayName("高度")]
|
|
public int Height
|
|
{
|
|
get { return height; }
|
|
set
|
|
{
|
|
height = value;
|
|
ctr.Height = value;
|
|
}
|
|
}
|
|
}
|
|
}
|