コード例 #1
0
        /// <summary>
        /// Highlights the move slaves of the specified shape
        /// </summary>
        /// <param name="shape"></param>
        void HighlightSlaves(NShape shape)
        {
            ClearHighlights();

            NList <NShape> shapes = shape.GetMoveSlaves();

            for (int i = 0; i < shapes.Count; i++)
            {
                NShape cur = shapes[i];
                cur.Geometry.Fill   = new NColorFill(NColor.LightCoral);
                cur.Geometry.Stroke = new NStroke(2, NColor.DarkRed);
            }
        }