Base class of all objects that can be read from XML.

Namespace: TallComponents.PDF.Layout
Assembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.66.0

Syntax

C#
[SerializableAttribute]
public abstract class Object
Visual Basic
<SerializableAttribute> _
Public MustInherit Class Object

Remarks

Object features most of the logic used to load object declarations from XML. You can use this feature in your own classes by deriving from this class.

Derived classes must have a public parameterless constructor, otherwise it cannot be instatiated.

The XML processor can handle all public properties if:

  • of type System.String.
  • that have a 'public static [type] Parse( string )' method (this includes many value-types such as double, bool, etc.
  • that have public static get-properties that return instances of that type.
  • enumeration members
The attribute name should match (case-insensitive) the name of the public property. Object will use Unit.Parse to process doubles.

Use the type attribute to specify derived classes using their fully qualified type name.

To implement custom XML reading, create a class with a public parameterless constructor and add a

CopyC#
void Read(XmlReader)
method. The XML reader will invoke the Read method right after construction. Note that if you use this approach, you are completely on your own in processing the XML. Make sure that, when the method finishes processing the XML, the XmlReader is positioned at the first node after the end element.

Inheritance Hierarchy

System..::..Object
  TallComponents.PDF.Layout..::..Object
    TallComponents.PDF.Layout.Actions..::..Action
    TallComponents.PDF.Layout.Actions..::..ActionCollection
    TallComponents.PDF.Layout..::..Area
    TallComponents.PDF.Layout..::..AreaCollection
    TallComponents.PDF.Layout..::..Border
    TallComponents.PDF.Layout.Brushes..::..Brush
    TallComponents.PDF.Layout..::..Column
    TallComponents.PDF.Layout..::..ColumnCollection
    TallComponents.PDF.Layout.Css..::..CssStyleSheet
    TallComponents.PDF.Layout..::..Document
    TallComponents.PDF.Layout..::..DocumentInfo
    TallComponents.PDF.Layout.Fonts..::..Font
    TallComponents.PDF.Layout.JavaScript..::..JavaScript
    TallComponents.PDF.Layout.Navigation..::..Destination
    TallComponents.PDF.Layout.Navigation..::..ViewerPreferences
    TallComponents.PDF.Layout..::..PageSize
    TallComponents.PDF.Layout.Paragraphs..::..Bordered
    TallComponents.PDF.Layout.Paragraphs..::..CellCollection
    TallComponents.PDF.Layout.Paragraphs..::..Fragment
    TallComponents.PDF.Layout.Paragraphs..::..FragmentCollection
    TallComponents.PDF.Layout.Paragraphs..::..Note
    TallComponents.PDF.Layout.Paragraphs..::..RowCollection
    TallComponents.PDF.Layout.Paragraphs..::..TableColumnDefinition
    TallComponents.PDF.Layout.Paragraphs..::..TableColumnDefinitionCollection
    TallComponents.PDF.Layout.Paragraphs..::..TabStop
    TallComponents.PDF.Layout.Pens..::..DashPattern
    TallComponents.PDF.Layout.Pens..::..Pen
    TallComponents.PDF.Layout..::..Rectangle
    TallComponents.PDF.Layout..::..Section
    TallComponents.PDF.Layout..::..SectionCollection
    TallComponents.PDF.Layout.Security..::..Security
    TallComponents.PDF.Layout.Shapes.Fields..::..Option
    TallComponents.PDF.Layout.Shapes..::..FreeHandSegment
    TallComponents.PDF.Layout.Shapes..::..FreeHandSegmentCollection
    TallComponents.PDF.Layout.Shapes..::..Shape
    TallComponents.PDF.Layout..::..Spacing

See Also