Example #1
0
        public object Clone()
        {
            var r = new SingleGraphPrintOptions();

            r.CopyFrom(this);
            return(r);
        }
Example #2
0
        public void CopyFrom(SingleGraphPrintOptions from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            _fitGraphToPrintIfSmaller = from._fitGraphToPrintIfSmaller;
            _fitGraphToPrintIfLarger  = from._fitGraphToPrintIfLarger;
            _useFixedZoomFactor       = from._useFixedZoomFactor;
            _zoomFactor = from._zoomFactor;
            _tilePages  = from._tilePages;
            _rotatePageAutomatically = from._rotatePageAutomatically;
            _printCropMarks          = from._printCropMarks;
            _printLocation           = from._printLocation;
        }
		public bool InitializeDocument(params object[] args)
		{
			if (null == args || args.Length == 0 || !(args[0] is SingleGraphPrintOptions))
				return false;

			_originalDoc = (SingleGraphPrintOptions)args[0];
			if (_useDocumentCopy == UseDocument.Copy)
				_doc = (SingleGraphPrintOptions)_originalDoc.Clone();
			else
				_doc = _originalDoc;

			Initialize(true);

			return true;
		}
Example #4
0
		public void CopyFrom(SingleGraphPrintOptions from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this._fitGraphToPrintIfSmaller = from._fitGraphToPrintIfSmaller;
			this._fitGraphToPrintIfLarger = from._fitGraphToPrintIfLarger;
			this._useFixedZoomFactor = from._useFixedZoomFactor;
			this._zoomFactor = from._zoomFactor;
			this._tilePages = from._tilePages;
			this._rotatePageAutomatically = from._rotatePageAutomatically;
			this._printCropMarks = from._printCropMarks;
			this._printLocation = from._printLocation;
		}
Example #5
0
		public object Clone()
		{
			var r = new SingleGraphPrintOptions();
			r.CopyFrom(this);
			return r;
		}