/// <summary> /// Generates an object from its XML representation. /// </summary> /// <param name="reader">The <see cref="T:System.Xml.XmlReader" /> stream from which the object is deserialized.</param> void IXmlSerializable.ReadXml(XmlReader reader) { if (reader == null) { throw new ArgumentNullException("reader"); } if (reader.NodeType == ((XmlNodeType)((int)XmlNodeType.XmlDeclaration))) { reader.Read(); } this.Init(); while (reader.Read()) { if (reader.NodeType == ((XmlNodeType)((int)XmlNodeType.Element))) { this.ReadXmlBase(reader); } } if (this.TopMarginInner != null) { this.TopMarginInner.Report = this; } if (this.BottomMarginInner != null) { this.BottomMarginInner.Report = this; } if (this.sections != null) { Dictionary <int, Dt.Cells.Data.Bookmark> dictionary = new Dictionary <int, Dt.Cells.Data.Bookmark>(); foreach (GcSection section in this.sections) { if (section.Controls != null) { foreach (GcControl control in section.Controls) { if (control is GcPrintableControl) { Dt.Cells.Data.Bookmark bookmark = ((GcPrintableControl)control).Bookmark; if (!dictionary.ContainsKey(bookmark.Index)) { dictionary.Add(bookmark.Index, bookmark); Dt.Cells.Data.Bookmark.SIndex = Math.Max(Dt.Cells.Data.Bookmark.SIndex, bookmark.Index); } } } } } foreach (Dt.Cells.Data.Bookmark bookmark2 in dictionary.Values) { if (bookmark2.ParentIndex >= 0) { bookmark2.Parent = dictionary[bookmark2.ParentIndex]; } } } }
/// <summary> /// Initializes this instance. /// </summary> protected override void Init() { base.Init(); this.border = null; this.font = null; this.canGrow = true; this.canShrink = false; this.height = 200; this.width = 300; this.rotationAngle = 0.0; this.bookmark = new Dt.Cells.Data.Bookmark(); this.navigationUri = null; this.visible = true; this.zIndex = 0; }
/// <summary> /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.ExporterState.BookmarkState" /> class. /// </summary> /// <param name="bookmark">The bookmark.</param> /// <param name="page">The page.</param> /// <param name="location">The location.</param> public BookmarkState(Dt.Cells.Data.Bookmark bookmark, PdfPage page, Windows.Foundation.Point location) { this.bookmark = bookmark; this.page = page; this.location = location; }