TextDrawingManagerOnTextDrawingItemClickedEvent Event |
Namespace: VIZCore3D.NET.Manager
public event TextDrawingItemClickedEventHandler OnTextDrawingItemClickedEvent
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { vizcore3d.TextDrawing.OnTextDrawingItemClickedEvent += TextDrawing_OnTextDrawingItemClickedEvent; } private void TextDrawing_OnTextDrawingItemClickedEvent(object sender, Event.EventManager.TextDrawingItemClickedEventArgs e) { StringBuilder sb = new StringBuilder(); sb.AppendFormat("Event : {0}\n", "OnTextDrawingItemClickedEvent"); sb.AppendFormat("ID : {0}\n", e.Item.ID); sb.AppendFormat("Center : {0}\n", e.Item.Center.ToString()); sb.AppendFormat("Direction : {0}\n", e.Item.Direction.ToString()); sb.AppendFormat("UpDirection : {0}\n", e.Item.UpDirection.ToString()); sb.AppendFormat("Height : {0}\n", e.Item.Height); sb.AppendFormat("Color : {0}\n", e.Item.FontColor.ToString()); sb.AppendFormat("Text : {0}\n", e.Item.Text); System.Diagnostics.Trace.WriteLine(sb.ToString()); }