#region MigraDoc - Creating Documents on the Fly // // Authors: // Klaus Potzesny // // Copyright (c) 2001-2017 empira Software GmbH, Cologne Area (Germany) // // http://www.pdfsharp.com // http://www.migradoc.com // http://sourceforge.net/projects/pdfsharp // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. #endregion using PdfSharp.Drawing; namespace MigraDoc.Rendering { /// /// Abstract base class to serve as a layoutable unit. /// public class LayoutInfo { public LayoutInfo() { } /// /// Gets or sets the height necessary to start the document object. /// public XUnit StartingHeight { get { return _startingHeight; } set { _startingHeight = value; } } XUnit _startingHeight; /// /// Gets or sets the height necessary to end the document object. /// public XUnit TrailingHeight { get { return _trailingHeight; } set { _trailingHeight = value; } } XUnit _trailingHeight; /// /// Indicates whether the document object shall be kept on one page /// with its successor. /// public bool KeepWithNext { get { return _keepWithNext; } set { _keepWithNext = value; } } bool _keepWithNext; /// /// Indicates whether the document object shall be kept together on one page. /// public bool KeepTogether { get { return _keepTogether; } set { _keepTogether = value; } } bool _keepTogether; /// /// The space that shall be kept free above the element's content. /// public virtual XUnit MarginTop { get { return _marginTop; } set { _marginTop = value; } } XUnit _marginTop; /// /// The space that shall be kept free right to the element's content. /// public XUnit MarginRight { get { return _marginRight; } set { _marginRight = value; } } XUnit _marginRight; /// /// The space that shall be kept free below the element's content. /// public XUnit MarginBottom { get { return _marginBottom; } set { _marginBottom = value; } } XUnit _marginBottom; /// /// The space that shall be kept free left to the element's content. /// public XUnit MarginLeft { get { return _marginLeft; } set { _marginLeft = value; } } XUnit _marginLeft; /// /// Gets or sets the Area needed by the content (including padding and borders for e.g. paragraphs). /// public Area ContentArea { get { return _contentArea; } set { _contentArea = value; } } Area _contentArea; /// /// Gets or sets the a value indicating whether the element shall appear on a new page. /// public bool PageBreakBefore { get { return _pageBreakBefore; } set { _pageBreakBefore = value; } } bool _pageBreakBefore; /// /// Gets or sets the reference point for horizontal positioning. /// /// Default value is AreaBoundary. public HorizontalReference HorizontalReference { get { return _horizontalReference; } set { _horizontalReference = value; } } HorizontalReference _horizontalReference; /// /// Gets or sets the reference point for vertical positioning. /// /// Default value is PreviousElement. public VerticalReference VerticalReference { get { return _verticalReference; } set { _verticalReference = value; } } VerticalReference _verticalReference; /// /// Gets or sets the horizontal alignment of the element. /// /// Default value is Near. public ElementAlignment HorizontalAlignment { get { return _horizontalAlignment; } set { _horizontalAlignment = value; } } ElementAlignment _horizontalAlignment; /// /// Gets or sets the vertical alignment of the element. /// /// Default value is Near. public ElementAlignment VerticalAlignment { get { return _verticalAlignment; } set { _verticalAlignment = value; } } ElementAlignment _verticalAlignment; /// /// Gets or sets the floating behavior of surrounding elements. /// /// Default value is TopBottom. public Floating Floating { get { return _floating; } set { _floating = value; } } Floating _floating; /// /// Gets or sets the top position of the element. /// public XUnit Top { get { return _top; } set { _top = value; } } XUnit _top; /// /// Gets or sets the left position of the element. /// public XUnit Left { get { return _left; } set { _left = value; } } XUnit _left; /// /// Gets or sets the minimum width of the element. /// public XUnit MinWidth { get { return _minWidth; } set { _minWidth = value; } } XUnit _minWidth; } }