Example #1
0
        internal DimensionRenderer(IDisplay display, DimensionRenderer renderer)
        {
            if (renderer == null)
            {
                return;
            }
            _useRefScale = renderer._useRefScale;
            _capType     = renderer._capType;

            if (renderer != null && renderer._textSymbol != null)
            {
                _textSymbol = renderer._textSymbol.Clone(_useRefScale ? new CloneOptions(display, true) : null) as ITextSymbol;
            }
            if (renderer != null && renderer._lineSymbol != null)
            {
                _lineSymbol = renderer._lineSymbol.Clone(_useRefScale ? new CloneOptions(display, true) : null) as ILineSymbol;
            }

            _format = renderer._format;
        }
Example #2
0
        public object Clone(CloneOptions options)
        {
            DimensionRenderer renderer = new DimensionRenderer(options?.Display, this);

            return(renderer);
        }
Example #3
0
        public object Clone(IDisplay display)
        {
            DimensionRenderer renderer = new DimensionRenderer(display, this);

            return(renderer);
        }