Files
lserp_cs_6.0/其他程序/xNewMyFormDesigner/Codes/ControlParentProperty.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

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;
}
}
}
}