پیشنهاد برای CesLine :
private bool autoStick = true;
[System.ComponentModel.Category("Ces Line")]
public bool AutoStick
{
get
{
return autoStick;
}
set
{
autoStick = value;
if (autoStick)
{
if (CesVertical)
{
this.Height = this.Parent.Height;
this.Top = 0;
}
else
{
this.Width = this.Parent.Width;
this.Left = 0;
}
}
}
}