Table of Contents

Property Document

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Document

Gets or sets the base style applied to all text elements.

public TextStyle Document { get; set; }

Property Value

TextStyle

The base text style.

Remarks

Default value: Parent.

The library automatically applies this style to all text elements before any other styles.

The library uses the following defaults for the root document element. They are used if the Document style or some of its properties are not explicitly defined.

  • Font: Helvetica Regular
  • Font size: 12 points
  • Text color: black, opaque
  • Background color: transparent
  • Line height: 1.2
  • Letter spacing: 0
  • Direction (auto/ltr/rtl): auto
  • Position (normal/subscript/superscript): normal
  • Striketrough: false
  • Underline: false
  • Wrapping: false
  • Fallback: null

Exceptions

ArgumentNullException

The value is null.

ArgumentException

The value or its fallback belongs to a different Document.