Beispiel #1
0
#pragma warning disable CS1574 // XML comment has cref attribute 'PropertyCollectionDictionary' that could not be resolved
        /// <summary>
        /// Resolve <see cref="styleShotTargetEnum"/> into string path for <c>metaContentRanges</c>
        /// </summary>
        /// <param name="target">The target.</param>
        /// <returns>
        /// Path for <c>metaContentRanges</c>
        /// </returns>
        /// <exception cref="System.ArgumentOutOfRangeException">target - thisAppend is not applicable for path resolution</exception>
        /// <seealso cref="imbSCI.Data.collection.PropertyCollectionDictionary" />
        /// <seealso cref="imbSCI.Core.reporting.style.areaStyleInstructionStack" />
        protected string resolvePathForStyleShotArea(styleShotTargetEnum target)
#pragma warning restore CS1574 // XML comment has cref attribute 'PropertyCollectionDictionary' that could not be resolved
        {
            if (target == styleShotTargetEnum.unknown)
            {
                target = styleShotTargetEnum.thisAppend;
            }

            switch (target)
            {
            case styleShotTargetEnum.none:
                return("");

                break;

            case styleShotTargetEnum.lastAppend:
                var tmp = metaContentRanges.getLastAny();
                return(tmp.path);

                break;

            case styleShotTargetEnum.thisAppend:
                throw new ArgumentOutOfRangeException("target", "thisAppend is not applicable for path resolution");
                break;

            default:
            case styleShotTargetEnum.thisScope:
                return(scope.path);

                break;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Resolve <see cref="styleShotTargetEnum"/> into <see cref="imbSCI.Core.reporting.zone.selectRangeArea"/>
        /// </summary>
        /// <param name="target">The target - </param>
        /// <returns>Area to apply style with</returns>
        protected selectRangeArea resolveAreaForStyleShot(styleShotTargetEnum target)
        {
            selectRangeArea output = null;

            if (target == styleShotTargetEnum.unknown)
            {
                target = styleShotTargetEnum.thisAppend;
            }

            switch (target)
            {
            case styleShotTargetEnum.none:
                output = null;
                break;

            case styleShotTargetEnum.lastAppend:
                output = metaContentRanges.getLastAny();
                break;

            case styleShotTargetEnum.thisAppend:
                output = c.pencilAbsolute;
                break;

            default:
            case styleShotTargetEnum.thisScope:
                output = metaContentRanges[scope.path];
                break;
            }
            if (output == null)
            {
                error("__result for resolveAreaForStyleShot(styleShotTargetEnum target=" + target.ToString() + ") ");
            }
            return(output);
        }