ShapeSelected

Top  Previous  Next

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

         

 

         checkBrushShow.Checked = e.SelectedShape.BrushShow;

         if (e.SelectedShape.Brush is SolidBrush == true)

                 btnBrushColor.BackColor = (e.SelectedShape.Brush as SolidBrush).Color;

 }