Пример #1
0
        /// <summary>
        /// Sets the right top corner of a shape
        /// </summary>
        /// <param name="shape"></param>
        /// <param name="location"></param>
        void SetRightTop(NShape shape, NPoint location)
        {
            // align local pin to left/top corner so pin point can change the location
            shape.LocPinX        = 1;
            shape.LocPinY        = 0;
            shape.LocPinRelative = true;

            // set the pin point
            shape.SetPinPoint(location);
        }