示例#1
0
        /// <summary>
        /// apply the window position adjustment to convert the position relative to
        /// the window to position relative to parent of the window.
        /// </summary>
        /// <param name="AdjustRowCol"></param>
        /// <param name="LocalPos"></param>
        /// <returns></returns>
        public static IRowCol LocalPosToParentPos(
            this IRowCol AdjustRowCol, IRowCol LocalPos)
        {
            IRowCol parentPos = null;

            if (AdjustRowCol == null)
            {
                parentPos = LocalPos;
            }
            else
            {
                parentPos = LocalPos.Add(AdjustRowCol);
            }
            return(parentPos);
        }