Skip to content

# PDFStandardLayoutAttribute

Namespace: O2S.Components.PDF4NET.LogicalStructure

Defines a standard layout attribute.

    public class PDFStandardLayoutAttribute : PDFStructureElementAttribute

Inheritance Object → PDFStructureElementAttribute → PDFStandardLayoutAttribute

## Constructors

### PDFStandardLayoutAttribute()

Initializes a new PDFStandardLayoutAttribute object.

    public PDFStandardLayoutAttribute()

## Properties

### BackgroundColor

Gets or sets the background color.

    public PDFRgbColor BackgroundColor { get; set; }

Property Value

PDFRgbColor
The color to be used to fill the background of a table cell or any element's content rectangle

### BaselineShift

Gets or sets the baseline shift.

    public double BaselineShift { get; set; }

Property Value

Double
The distance, in default user space units, by which the element's baseline shall be shifted relative to that of its parent element.

### BlockAlign

Gets or sets the block align.

    public PDFStandardLayoutBlockAlign BlockAlign { get; set; }

Property Value

PDFStandardLayoutBlockAlign
The alignment, in the block-progression direction, of content within the table cell.

### BorderColor

Gets or sets the border color.

    public PDFRgbColor BorderColor { get; set; }

Property Value

PDFRgbColor
The colour of the border drawn on the edges of a table cell or any element's content rectangle

### BorderStyle

Gets or sets the border style.

    public PDFStandardLayoutBorderStyle BorderStyle { get; set; }

Property Value

PDFStandardLayoutBorderStyle
A PDFStandardLayoutBorderStyle enum member specifying the style of an element's border.

### BorderThickness

Gets or sets the border thickness.

    public double BorderThickness { get; set; }

Property Value

Double
The thickness of the border drawn on the edges of a table cell or any element's content rectangle.

### BoundingBox

Gets or sets the bounding box.

    public PDFStandardRectangle BoundingBox { get; set; }

Property Value

PDFStandardRectangle
A rectangle in default user space units that shall give the coordinates of the left, bottom, right, and top edges, respectively, of the structure element's bounding box (the rectangle that completely encloses its visible content).

### Color

Gets or sets the text color.

    public PDFRgbColor Color { get; set; }

Property Value

PDFRgbColor
The colour to be used for drawing text and the default value for the colour of table borders and text decorations.

### ColumnCount

Gets or sets the number of columns.

    public int ColumnCount { get; set; }

Property Value

Int32
The number of columns in the content of the grouping element.

### ColumnGap

Gets or sets the column gap.

    public double ColumnGap { get; set; }

Property Value

Double
The desired space between adjacent columns, measured in default user space units in the inline-progression direction.

### ColumnWidths

Gets or sets the column widths.

    public Double[] ColumnWidths { get; set; }

Property Value

Double[]
The desired width of the columns, measured in default user space units in the inline-progression direction.

### CosDictionary

Gets the underlying COS dictionary.

    public PDFCosDictionary CosDictionary { get; }

Property Value

PDFCosDictionary
A PDFCosDictionary object that backs this attribute object.

### EndIndent

Gets or sets the end indent.

    public double EndIndent { get; set; }

Property Value

Double
The distance from the end edge of the block to that of the reference area, measured in default user space units in the inline-progression direction.

### GlyphOrientationVertical

Gets or sets the glyph orientation.

    public int GlyphOrientationVertical { get; set; }

Property Value

Int32
The orientation of glyphs when the inline-progression direction is top to bottom or bottom to top

Remarks

The value -1 indicates a default orientation for text, depending on whether it is fullwidth (as wide as it is high).

### Height

Gets or sets the element height.

    public double Height { get; set; }

Property Value

Double
The height of the element's content rectangle, measured in default user space units in the block-progression direction.

Remarks

The value -1 indicates auto height, no specific height constraint is to be imposed; the element's height is determined by the intrinsic height of its content.

### InlineAlign

Gets or sets the inline align.

    public PDFStandardLayoutInlineAlign InlineAlign { get; set; }

Property Value

PDFStandardLayoutInlineAlign
The alignment, in the inline-progression direction, of content within the table cell.

### LineHeight

Gets or sets the line height.

    public double LineHeight { get; set; }

Property Value

Double
The element's preferred height, measured in default user space units in the block-progression direction.

Remarks

The value -2 means "Normal" (Adjust the line height to include any non-zero value specified for PDFStandardLayoutAttribute.BaselineShift), the value -1 means "Auto" (Adjustment for the value of PDFStandardLayoutAttribute.BaselineShift shall not be made).

### Padding

Gets or sets the padding.

    public double Padding { get; set; }

Property Value

Double
An offset to account for the separation between the element's content rectangle and the surrounding border.

### Placement

Gets or sets the element placement.

    public PDFStandardLayoutPlacement Placement { get; set; }

Property Value

PDFStandardLayoutPlacement
A PDFStandardLayoutPlacement enum member specifying the positioning of the element with respect to the enclosing reference area and other content.

### RubyAlign

Gets or sets the ruby align.

    public PDFStandardLayoutRubyAlign RubyAlign { get; set; }

Property Value

PDFStandardLayoutRubyAlign
A PDFStandardLayoutRubyAlign enum member specifying the justification of the lines within a ruby assembly.

### RubyPosition

Gets or sets the ruby align.

    public PDFStandardLayoutRubyPosition RubyPosition { get; set; }

Property Value

PDFStandardLayoutRubyPosition
A PDFStandardLayoutRubyPosition enum member specifying the justification of the lines within a ruby assembly.

### SpaceAfter

Gets or sets the space after.

    public double SpaceAfter { get; set; }

Property Value

Double
The amount of extra space following the after edge of the block, measured in default user space units in the block-progression direction.

### SpaceBefore

Gets or sets the space before.

    public double SpaceBefore { get; set; }

Property Value

Double
The amount of extra space preceding the before edge of the block, measured in default user space units in the block-progression direction.

### StartIndent

Gets or sets the start indent.

    public double StartIndent { get; set; }

Property Value

Double
The distance from the start edge of the reference area to that of the block, measured in default user space units in the inline-progression direction.

### TableCellBorderStyle

Gets or sets the table cell border style.

    public PDFStandardLayoutBorderStyle TableCellBorderStyle { get; set; }

Property Value

PDFStandardLayoutBorderStyle
A PDFStandardLayoutBorderStyle enum member specifying the style of the border drawn on each edge of a table cell.

### TableCellPadding

Gets or sets the table cell padding.

    public double TableCellPadding { get; set; }

Property Value

Double
An offset to account for the separation between the table cell's content rectangle and the surrounding border.

### TextAlign

Gets or sets the text align.

    public PDFStandardLayoutTextAlign TextAlign { get; set; }

Property Value

PDFStandardLayoutTextAlign
The alignment, in the inline-progression direction, of text and other content within lines of the block.

### TextDecorationColor

Gets or sets the text decoration color.

    public PDFRgbColor TextDecorationColor { get; set; }

Property Value

PDFRgbColor
The colour to be used for drawing text decorations.

### TextDecorationThickness

Gets or sets the text decoration thickness.

    public double TextDecorationThickness { get; set; }

Property Value

Double
The thickness of each line drawn as part of the text decoration.

### TextDecorationType

Gets or sets the text decoration type.

    public PDFStandardLayoutTextDecorationType TextDecorationType { get; set; }

Property Value

PDFStandardLayoutTextDecorationType
A PDFStandardLayoutTextDecorationType enum member specifying the text decoration, if any, to be applied to the element's text.

### TextIndent

Gets or sets the text indent.

    public double TextIndent { get; set; }

Property Value

Double
The additional distance, measured in default user space units in the inline-progression direction, from the start edge of the block, as specified by PDFStandardLayoutAttribute.StartIndent, to that of the first line of text.

Remarks

A negative value shall indicate a hanging indent.

### TextPosition

Gets or sets the text position.

    public PDFStandardLayoutTextPosition TextPosition { get; set; }

Property Value

PDFStandardLayoutTextPosition
A PDFStandardLayoutTextPosition enum member specifying the position of the element relative the immediately surrounding content.

### Width

Gets or sets the element width.

    public double Width { get; set; }

Property Value

Double
The width of the element's content rectangle, measured in default user space units in the inline-progression direction.

Remarks

The value -1 indicates auto width, no specific width constraint is to be imposed; the element's width is determined by the intrinsic width of its content.

### WritingMode

Gets or sets the element writing mode.

    public PDFStandardLayoutWritingMode WritingMode { get; set; }

Property Value

PDFStandardLayoutWritingMode
A PDFStandardLayoutWritingMode enum member specifying the writing mode of the element.