基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user