Beispiel #1
0
        /// <summary>
        /// Builds a single root-level property and populates its state
        /// </summary>
        /// <exception cref="XmlException">XML is not well-formed.</exception>
        private void BuildRootProperty(InternalPrintCapabilities printCap)
        {
            if (_reader.CurrentElementNameAttrValue == PrintSchemaTags.Keywords.PageImageableSizeKeys.Self)
            {
                ImageableSizeCapability imageableSizeCap = new ImageableSizeCapability();

                if (imageableSizeCap.BuildProperty(this._reader))
                {
                    printCap._pcRootFeatures[(int)CapabilityName.PageImageableSize] = imageableSizeCap;
                }
            }
            else
            {
                #if _DEBUG
                Trace.WriteLine("-Warning- Skip unknown root-level property '" +
                                _reader.CurrentElementNameAttrValue + "'");
                #endif
            }
        }
 internal CanvasImageableArea(ImageableSizeCapability ownerProperty)
 {
     this._ownerProperty = ownerProperty;
     _originWidth        = _originHeight = _extentWidth = _extentHeight = PrintSchema.UnspecifiedIntValue;
 }