<< Click to Display Table of Contents >> ShapeSelected |
public event ShapeSelectedEventHandler ShapeSelected;
Description:
When select a shape, this event trigger.
Example:
private void myCAD1_ShapeSelected(object sender, Codeidea.UltraGraphics.ShapeSelectedEventArgs e)
{
//Pen and brush property
btnPenColor.BackColor = e.SelectedShape.Pen.Color;
numericPenWidth.Value = Convert.ToDecimal(e.SelectedShape.Pen.Width);
comboPenDash.SelectedIndex = Convert.ToInt32(e.SelectedShape.Pen.DashStyle);
checkBrushShow.Checked = e.SelectedShape.BrushShow;
if (e.SelectedShape.Brush is SolidBrush == true)
btnBrushColor.BackColor = (e.SelectedShape.Brush as SolidBrush).Color;
}