# PdfDrawingStyle

Reusable placement and rhythm style for OfficeIMO.Drawing-backed flow objects.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfDrawingStyle.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L62)

**Modifiers**

sealed

Reusable placement and rhythm style for OfficeIMO.Drawing-backed flow objects.

## Inheritance

- object
- PdfDrawingStyle

## Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [PdfCreateOptions.DefaultDrawingStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaultdrawingstyle)
- Method [PdfDrawingStyle.Clone](/api/pdf/officeimo-pdf-pdfdrawingstyle/#method-clone)
- Property [PdfTheme.DrawingStyle](/api/pdf/officeimo-pdf-pdftheme/#property-drawingstyle)

### Accepted by parameters 11

- Method [PdfContentBuilder.Drawing](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-drawing-officeimo-drawing-officedrawing-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.Ellipse](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-ellipse-officeimo-officelength-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokelinecap-nullable-officeimo-drawing-officestrokelinejoin-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.Line](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-line-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokelinecap-nullable-officeimo-drawing-officestrokelinejoin-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.Path](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-path-collections-generic-ienumerable-officeimo-drawing-officepathcommand-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokelinecap-nullable-officeimo-drawing-officestrokelinejoin-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.Polygon](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-polygon-collections-generic-ienumerable-officeimo-drawing-officepoint-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokelinecap-nullable-officeimo-drawing-officestrokelinejoin-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.Rectangle](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-rectangle-officeimo-officelength-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokelinecap-nullable-officeimo-drawing-officestrokelinejoin-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.RoundedRectangle](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-roundedrectangle-officeimo-officelength-officeimo-officelength-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-drawing-officestrokedashstyle-nullable-officeimo-drawing-officestrokelinecap-nullable-officeimo-drawing-officestrokelinejoin-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfContentBuilder.Shape](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-shape-officeimo-drawing-officeshape-nullable-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfdrawingstyle-string-string) parameter `style`
- Method [PdfPageBuilder.DefaultDrawingStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaultdrawingstyle-officeimo-pdf-pdfdrawingstyle) parameter `style`
- Method [PdfPageCanvas.Drawing](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-drawing-officeimo-drawing-officedrawing-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfdrawingstyle-string-string-double) parameter `style`
- Method [PdfPageCanvas.Shape](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-shape-officeimo-drawing-officeshape-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfdrawingstyle-string-string-double) parameter `style`

Filter members 

Show inherited

## Constructors

`public PdfDrawingStyle()` [#](#constructor-ctor)

## Methods

`public PdfDrawingStyle Clone()` [#](#method-clone)

[PdfDrawingStyle.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L62)

Creates a copy of this drawing placement style.

Returns

`PdfDrawingStyle`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeAlignment Align { get; set; }` [#](#property-align)

[PdfDrawingStyle.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L14)

Object alignment within the current content frame.

`public OfficeLength SpacingBefore { get; set; }` [#](#property-spacingbefore)

[PdfDrawingStyle.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L23)

Vertical space before the drawing object in the surrounding document flow, in points.

`public OfficeLength SpacingAfter { get; set; }` [#](#property-spacingafter)

[PdfDrawingStyle.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L32)

Vertical space after the drawing object in the surrounding document flow, in points.

`public bool KeepWithNext { get; set; }` [#](#property-keepwithnext)

[PdfDrawingStyle.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L40)

Moves the drawing object to the next page with the first visible part of the following block when they fit together.

`public bool ConstrainToContentWidth { get; set; }` [#](#property-constraintocontentwidth)

[PdfDrawingStyle.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L43)

Proportionally reduces oversized drawing scenes to the current flow or row-column content width, without enlarging smaller scenes.

`public string? AlternativeText { get; set; }` [#](#property-alternativetext)

[PdfDrawingStyle.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L47)

Optional alternate text for meaningful generated shapes and drawing scenes.

`public bool Decorative { get; set; }` [#](#property-decorative)

[PdfDrawingStyle.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfDrawingStyle.cs#L58)

Marks the generated shape or drawing scene as decorative artifact content when tagged-PDF markers are enabled.

<!-- PowerForge markdown artifact sha256:6A3070CB899A2A2D6C934CD19DD1C3162F3891754E11F9D9BC851E13326B55CE -->
