# OdgShape

A Draw shape backed by its original XML, including elements outside the editable profile.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdgShape.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L55)

**Base**

`OdfShape`

**Modifiers**

sealed

A Draw shape backed by its original XML, including elements outside the editable profile.

## Inheritance

- [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)
- OdgShape

## Usage

Explore 16 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 13

- Method [OdgShapes.AddConnector](/api/open-document/officeimo-opendocument-odgshapes/#method-addconnector-officeimo-drawing-officepoint-officeimo-drawing-officepoint-officeimo-opendocument-odgconnectorkind-string)
- Method [OdgShapes.AddEllipse](/api/open-document/officeimo-opendocument-odgshapes/#method-addellipse-officeimo-opendocument-odfrect-string)
- Method [OdgShapes.AddGroup](/api/open-document/officeimo-opendocument-odgshapes/#method-addgroup-string)
- Method [OdgShapes.AddImage](/api/open-document/officeimo-opendocument-odgshapes/#method-addimage-byte-string-officeimo-opendocument-odfrect-string)
- Method [OdgShapes.AddLine](/api/open-document/officeimo-opendocument-odgshapes/#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string)
- Method [OdgShapes.AddPath](/api/open-document/officeimo-opendocument-odgshapes/#method-addpath-officeimo-opendocument-odfrect-officeimo-opendocument-odfviewbox-string-string)
- Method [OdgShapes.AddPolygon](/api/open-document/officeimo-opendocument-odgshapes/#method-addpolygon-officeimo-opendocument-odfrect-officeimo-opendocument-odfviewbox-collections-generic-ienumerable-officeimo-drawing-officepoint-string)
- Method [OdgShapes.AddPolyline](/api/open-document/officeimo-opendocument-odgshapes/#method-addpolyline-officeimo-opendocument-odfrect-officeimo-opendocument-odfviewbox-collections-generic-ienumerable-officeimo-drawing-officepoint-string)
- Method [OdgShapes.AddRectangle](/api/open-document/officeimo-opendocument-odgshapes/#method-addrectangle-officeimo-opendocument-odfrect-string)
- Method [OdgShapes.AddRoundedRectangle](/api/open-document/officeimo-opendocument-odgshapes/#method-addroundedrectangle-officeimo-opendocument-odfrect-officeimo-opendocument-odflength-string)
- Method [OdgShapes.AddTextBox](/api/open-document/officeimo-opendocument-odgshapes/#method-addtextbox-officeimo-opendocument-odfrect-string-string)
- Method [OdgShapes.GetEnumerator](/api/open-document/officeimo-opendocument-odgshapes/#method-getenumerator)
- Property [OdgShapes.Item](/api/open-document/officeimo-opendocument-odgshapes/#property-item-int32)

### Accepted by parameters 3

- Method [OdgShape.AttachEndToShape](/api/open-document/officeimo-opendocument-odgshape/#method-attachendtoshape-officeimo-opendocument-odgshape) parameter `shape`
- Method [OdgShape.AttachStartToShape](/api/open-document/officeimo-opendocument-odgshape/#method-attachstarttoshape-officeimo-opendocument-odgshape) parameter `shape`
- Method [OdgShape.RouteOrthogonalAroundShapes](/api/open-document/officeimo-opendocument-odgshape/#method-routeorthogonalaroundshapes-collections-generic-ienumerable-officeimo-opendocument-odgshape-double-int32) parameter `obstacles`

Filter members 

Show inherited

## Methods

`public OdgGluePoint AddGluePoint(OdgGluePointAlignment alignment = Center, OdfLength? offsetX = null, OdfLength? offsetY = null)` [#](#method-addgluepoint-officeimo-opendocument-odggluepointalignment-nullable-officeimo-opendocument-odflength-nullable-officeimo-opendocument-odflength)

[OdgShape.Connectors.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L27)

Adds an attachment point with absolute offsets from the selected edge or corner. Bottom uses a native relative point because ODF has no bottom-center alignment token; its offsets must be zero.

Parameters

**alignment OfficeIMO.OpenDocument.OdgGluePointAlignment = Center optional**

**offsetX OfficeIMO.OpenDocument.OdfLength? = null optional**

**offsetY OfficeIMO.OpenDocument.OdfLength? = null optional**

Returns

`OdgGluePoint`

`public OdfTextList AddList(bool ordered = false)` [#](#method-addlist-boolean)

[OdgShape.Text.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Text.cs#L20)

Appends a native ordered or unordered list with its own automatic list style.

Parameters

**ordered bool = false optional**

Returns

`OdfTextList`

`public OdfTextParagraph AddParagraph(string? text = null)` [#](#method-addparagraph-string)

[OdgShape.Text.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Text.cs#L14)

Appends a native paragraph while retaining existing text, lists and shape metadata.

Parameters

**text string? = null optional**

Returns

`OdfTextParagraph`

`public void AttachEnd(OdgGluePoint? point)` [#](#method-attachend-officeimo-opendocument-odggluepoint)

[OdgShape.Connectors.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L75)

Attaches the end to a glue point. Null detaches it while retaining its current position.

Parameters

**point OfficeIMO.OpenDocument.OdgGluePoint? required**

`public void AttachEndToShape(OdgShape? shape)` [#](#method-attachendtoshape-officeimo-opendocument-odgshape)

[OdgShape.Connectors.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L79)

Attaches the end using automatic selection among the shape's four edge centers. Null detaches it.

Parameters

**shape OfficeIMO.OpenDocument.OdgShape? required**

`public void AttachStart(OdgGluePoint? point)` [#](#method-attachstart-officeimo-opendocument-odggluepoint)

[OdgShape.Connectors.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L73)

Attaches the start to a glue point. Null detaches it while retaining its current position.

Parameters

**point OfficeIMO.OpenDocument.OdgGluePoint? required**

`public void AttachStartToShape(OdgShape? shape)` [#](#method-attachstarttoshape-officeimo-opendocument-odgshape)

[OdgShape.Connectors.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L77)

Attaches the start using automatic selection among the shape's four edge centers. Null detaches it.

Parameters

**shape OfficeIMO.OpenDocument.OdgShape? required**

`public void BakeConnectorTransform()` [#](#method-bakeconnectortransform)

[OdgShape.ConnectorTransforms.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.ConnectorTransforms.cs#L14)

Bakes a free connector's own affine transform into its endpoints and saved route, including curve controls. Clears the transform and native routing offsets; preserves the routing kind, declared stroke and other styles. Scaling changes geometry without scaling the declared stroke width. Attached ends, transformed parents and rotated, scaled or sheared connector labels are outside this profile. Translation retains labels. Unsupported input leaves the document unchanged.

`public byte[]? GetImageBytes()` [#](#method-getimagebytes)

[OdgShape.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L55)

Returns embedded image bytes without resolving external image references.

Returns

`byte[]?`

`public IReadOnlyList<OfficeDocumentModelLink> InspectHyperlinks()` [#](#method-inspecthyperlinks)

[OdgShape.Inspection.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Inspection.cs#L8)

Detached hyperlink descriptors from this shape's native text story, without accessing targets.

Returns

`IReadOnlyList<OfficeDocumentModelLink>`

`public void RouteOrthogonal(OdgConnectorRouteOrientation orientation = Auto, double offset = 0)` [#](#method-routeorthogonal-officeimo-opendocument-odgconnectorrouteorientation-double)

[OdgShape.OrthogonalRouting.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.OrthogonalRouting.cs#L22)

Replaces the route with three orthogonal segments and selects Standard routing. Offset is in connector-local points. This method does not avoid obstacles or enforce escape directions. Native applications can subsequently recalculate the route.

Parameters

**orientation OfficeIMO.OpenDocument.OdgConnectorRouteOrientation = Auto optional**

**offset double = 0 optional**

RouteOrthogonalAroundShapes 2 overloads

`public void RouteOrthogonalAroundShapes(IEnumerable<OdgShape> obstacles, double padding = 6, int maxLanes = 12)` [#](#method-routeorthogonalaroundshapes-collections-generic-ienumerable-officeimo-opendocument-odgshape-double-int32)

[OdgShape.OrthogonalRouting.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.OrthogonalRouting.cs#L38)

Searches a bounded set of orthogonal lanes avoiding the declared bounds of unrelated shapes. Padding is in connector-local points, before transforms. Up to 4096 bounded shapes and 32 lanes per direction are accepted. Attached shapes and line/connector obstacles are ignored; groups must be supplied as individual bounded children. No clear lane, unsupported input, or invalid geometry leaves the previous route intact. Native applications can reroute it.

Parameters

**obstacles System.Collections.Generic.IEnumerable<OfficeIMO.OpenDocument.OdgShape> required**

**padding double = 6 optional**

**maxLanes int = 12 optional**

`public void RouteOrthogonalAroundShapes(IEnumerable<OdgShape> obstacles, bool respectEscapeDirections, double padding = 6, int maxLanes = 12)` [#](#method-routeorthogonalaroundshapes-collections-generic-ienumerable-officeimo-opendocument-odgshape-boolean-double-int32)

[OdgShape.OrthogonalRouting.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.OrthogonalRouting.cs#L49)

Optionally enforces explicit glue-point escape directions while avoiding obstacles and attached shape bounds. With constraints enabled, routes, padding and departure directions use page coordinates; the saved route is mapped back into the connector's coordinate space. Free, automatic and standard glue endpoints allow all directions. Every route must remain orthogonal, retain its departures and match its attachments within 0.1 page point after native-grid rounding. Unsupported input or an exhausted bounded search leaves the document unchanged. Native applications may subsequently reroute it.

Parameters

**obstacles System.Collections.Generic.IEnumerable<OfficeIMO.OpenDocument.OdgShape> required**

**respectEscapeDirections bool required**

**padding double = 6 optional**

**maxLanes int = 12 optional**

`public void SetConnectorRoute(IEnumerable<OfficePathCommand> commands)` [#](#method-setconnectorroute-collections-generic-ienumerable-officeimo-drawing-officepathcommand)

[OdgShape.ConnectorPaths.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.ConnectorPaths.cs#L44)

Replaces the saved open route with commands in connector-local points. Free endpoints follow the route; attached endpoints within 0.1 point of their glue positions are snapped to those positions before native-grid rounding. Native applications can subsequently reroute it.

Parameters

**commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand> required**

`public void SetPathCommands(IEnumerable<OfficePathCommand> commands)` [#](#method-setpathcommands-collections-generic-ienumerable-officeimo-drawing-officepathcommand)

[OdgShape.Geometry.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L24)

Replaces native path data using bounded shared Drawing commands.

Parameters

**commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand> required**

`public void SetPoints(IEnumerable<OfficePoint> points)` [#](#method-setpoints-collections-generic-ienumerable-officeimo-drawing-officepoint)

[OdgShape.Geometry.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L45)

Replaces polygon/polyline vertices. Coordinates must be signed 32-bit integers; at most 20,000 vertices are accepted.

Parameters

**points System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePoint> required**

`public XElement ToXml()` [#](#method-toxml)

[OdgShape.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L60)

Returns a detached copy of the native element for inspection.

Returns

`XElement`

`public void TransformChildren(string transform)` [#](#method-transformchildren-string)

[OdgShape.GroupTransforms.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.GroupTransforms.cs#L22)

Applies an affine transform to existing group children in their parent coordinate space. Nested groups remain groups; free connector and line coordinates are baked. Attached connectors and unknown elements are rejected before any child changes. Connector labels permit translation only; baking free connector geometry preserves the declared stroke width rather than scaling it.

Parameters

**transform string required**

`public void UseNativeThreeSegmentRouting()` [#](#method-usenativethreesegmentrouting)

[OdgShape.NativeRouting.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.NativeRouting.cs#L16)

Encodes the saved three-segment route as native Lines routing, departure directions and segment offsets. Both ends must attach to untransformed rectangles, frames or full ellipses/circles with declared SVG bounds. The outer segments must be horizontal or vertical and nonzero; the middle segment may be diagonal. Equivalent directional glue points are reused, otherwise cloned without altering shared points. The connector's own transform is baked into the route; transformed parents and transformed connector text are rejected. Native applications may adjust bends for painted bounds, strokes or subsequent shape edits. Unsupported input leaves the document unchanged.

## 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 IReadOnlyList<OfficePathCommand> ConnectorRouteCommands { get; }` [#](#property-connectorroutecommands)

[OdgShape.ConnectorPaths.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.ConnectorPaths.cs#L12)

Returns a detached route in connector-local points, before the connector and parent transforms. Saved routes must match the resolved endpoints; non-straight connectors without a saved route require native routing.

`public bool IsConnector { get; }` [#](#property-isconnector)

[OdgShape.Connectors.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L19)

Whether this element is a native connector.

`public IReadOnlyList<OdgGluePoint> GluePoints { get; }` [#](#property-gluepoints)

[OdgShape.Connectors.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L21)

Explicit glue points on this shape.

`public OdgConnectorKind ConnectorKind { get; set; }` [#](#property-connectorkind)

[OdgShape.Connectors.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L55)

Native connector routing style.

`public string? StartShapeId { get; }` [#](#property-startshapeid)

[OdgShape.Connectors.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L69)

Identifier of the shape attached to the start, or null for a free endpoint.

`public string? EndShapeId { get; }` [#](#property-endshapeid)

[OdgShape.Connectors.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Connectors.cs#L71)

Identifier of the shape attached to the end, or null for a free endpoint.

`public string ElementName { get; }` [#](#property-elementname)

[OdgShape.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L7)

Native element name, for example rect, ellipse, frame, line, or g.

`public bool IsGroup { get; }` [#](#property-isgroup)

[OdgShape.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L9)

Whether this is a shape group.

`public OdgShapes Children { get; }` [#](#property-children)

[OdgShape.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L11)

Children of a group. Access on other shapes throws.

`public bool IsImage { get; }` [#](#property-isimage)

[OdgShape.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L13)

Whether the shape has an embedded or linked image.

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

[OdgShape.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L15)

Layer name. Layer definitions and visibility remain preserved in the document XML.

`public override OdfRect Bounds { get; set; }` [#](#property-bounds)

[OdgShape.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L18)

Geometry for rectangular shapes. Lines use endpoints; groups use child geometry and transforms.

`public string Text { get; set; }` [#](#property-text)

[OdgShape.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L26)

Plain text of paragraphs, headings and lists in the selected text container, including text boxes and image captions. Assignment replaces their rich formatting.

`public OdfLength? FontSize { get; set; }` [#](#property-fontsize)

[OdgShape.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L37)

Uniform font size for the shape's plain text profile.

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

[OdgShape.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L40)

Uniform font family for the shape's plain text profile.

`public OdfColor? TextColor { get; set; }` [#](#property-textcolor)

[OdgShape.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L44)

Uniform text color for the shape's plain text profile.

`public OdfLength X1 { get; set; }` [#](#property-x1)

[OdgShape.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L46)

Line start horizontal coordinate.

`public OdfLength Y1 { get; set; }` [#](#property-y1)

[OdgShape.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L48)

Line start vertical coordinate.

`public OdfLength X2 { get; set; }` [#](#property-x2)

[OdgShape.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L50)

Line end horizontal coordinate.

`public OdfLength Y2 { get; set; }` [#](#property-y2)

[OdgShape.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.cs#L52)

Line end vertical coordinate.

`public OdfViewBox ViewBox { get; set; }` [#](#property-viewbox)

[OdgShape.Geometry.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L12)

Local coordinate canvas for a path, polygon, or polyline. Changing bounds scales this canvas.

`public string PathData { get; set; }` [#](#property-pathdata)

[OdgShape.Geometry.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L17)

Native SVG path data. Assignment validates the bounded shared path grammar and retains the supplied notation.

`public IReadOnlyList<OfficePathCommand> PathCommands { get; }` [#](#property-pathcommands)

[OdgShape.Geometry.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L21)

Parsed path commands in view-box coordinates; SVG arcs and shorthand are normalized by the shared Drawing parser.

`public IReadOnlyList<OfficePoint> Points { get; }` [#](#property-points)

[OdgShape.Geometry.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L29)

Polygon or polyline vertices in integer view-box coordinates. The returned list is detached.

`public OdfLength? CornerRadius { get; set; }` [#](#property-cornerradius)

[OdgShape.Geometry.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L50)

Circular rectangle corner radius. Setting this clears the alternate elliptical radii.

`public OdfLength? CornerRadiusX { get; set; }` [#](#property-cornerradiusx)

[OdgShape.Geometry.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L55)

Horizontal rectangle corner radius. When only one elliptical radius is present it supplies both axes.

`public OdfLength? CornerRadiusY { get; set; }` [#](#property-cornerradiusy)

[OdgShape.Geometry.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Geometry.cs#L60)

Vertical rectangle corner radius. Setting this clears the circular radius.

`public override string? Transform { get; set; }` [#](#property-transform)

[OdgShape.GroupTransforms.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.GroupTransforms.cs#L8)

Native transform for a leaf shape. Use TransformChildren to transform a group.

`public OdfInsets? Crop { get; set; }` [#](#property-crop)

[OdgShape.ImageCrop.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.ImageCrop.cs#L8)

Image crop offsets in intrinsic image lengths, ordered top, right, bottom, left.

`public OdfImageMirror? Mirror { get; set; }` [#](#property-mirror)

[OdgShape.ImageMirror.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.ImageMirror.cs#L9)

Mirrors image pixels through the native graphic style without changing the resource.

`public string? ImagePath { get; }` [#](#property-imagepath)

[OdgShape.Inspection.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Inspection.cs#L5)

Authored image reference, including external targets which inspection never fetches.

`public IReadOnlyList<OdfTextParagraph> Paragraphs { get; }` [#](#property-paragraphs)

[OdgShape.Text.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Text.cs#L6)

Native paragraphs and headings in reading order, including list items. Excludes other text stories.

`public IReadOnlyList<OdfTextList> Lists { get; }` [#](#property-lists)

[OdgShape.Text.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdgShape.Text.cs#L10)

Direct native lists in this shape's text container.

## Inherited Properties

`public string Name { get; set; }` [#](#property-name)

[OdfShape.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.cs#L10)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

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

[OdfShape.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.cs#L18)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OfficeFillRule FillRule { get; set; }` [#](#property-fillrule)

[OdfShape.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.cs#L45)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfColor? FillColor { get; set; }` [#](#property-fillcolor)

[OdfShape.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.cs#L56)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfColor? StrokeColor { get; set; }` [#](#property-strokecolor)

[OdfShape.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.cs#L65)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? StrokeWidth { get; set; }` [#](#property-strokewidth)

[OdfShape.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.cs#L76)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

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

[OdfShape.Gradients.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Gradients.cs#L8)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public int? GradientStepCount { get; set; }` [#](#property-gradientstepcount)

[OdfShape.Gradients.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Gradients.cs#L28)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

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

[OdfShape.Markers.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Markers.cs#L5)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

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

[OdfShape.Markers.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Markers.cs#L7)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? StrokeStartMarkerWidth { get; set; }` [#](#property-strokestartmarkerwidth)

[OdfShape.Markers.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Markers.cs#L9)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? StrokeEndMarkerWidth { get; set; }` [#](#property-strokeendmarkerwidth)

[OdfShape.Markers.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Markers.cs#L11)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public bool? StrokeStartMarkerCentered { get; set; }` [#](#property-strokestartmarkercentered)

[OdfShape.Markers.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Markers.cs#L13)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public bool? StrokeEndMarkerCentered { get; set; }` [#](#property-strokeendmarkercentered)

[OdfShape.Markers.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Markers.cs#L15)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public double? FillOpacity { get; set; }` [#](#property-fillopacity)

[OdfShape.Opacity.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Opacity.cs#L8)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public double? StrokeOpacity { get; set; }` [#](#property-strokeopacity)

[OdfShape.Opacity.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Opacity.cs#L20)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public double? ImageOpacity { get; set; }` [#](#property-imageopacity)

[OdfShape.Opacity.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Opacity.cs#L27)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OfficeStrokeLineCap? StrokeLineCap { get; set; }` [#](#property-strokelinecap)

[OdfShape.Stroke.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Stroke.cs#L8)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OfficeStrokeLineJoin? StrokeLineJoin { get; set; }` [#](#property-strokelinejoin)

[OdfShape.Stroke.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Stroke.cs#L20)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

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

[OdfShape.Stroke.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.Stroke.cs#L33)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfTextFitMode? TextFitMode { get; set; }` [#](#property-textfitmode)

[OdfShape.TextFitting.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextFitting.cs#L17)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OfficeTextAreaAlignment? TextAreaAlignment { get; set; }` [#](#property-textareaalignment)

[OdfShape.TextFrame.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextFrame.cs#L11)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfTextAreaVerticalAlignment? TextVerticalAlignment { get; set; }` [#](#property-textverticalalignment)

[OdfShape.TextFrame.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextFrame.cs#L27)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public bool? WrapText { get; set; }` [#](#property-wraptext)

[OdfShape.TextFrame.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextFrame.cs#L42)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfInsets? TextPadding { get; set; }` [#](#property-textpadding)

[OdfShape.TextFrame.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextFrame.cs#L59)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public bool? AutoGrowHeight { get; set; }` [#](#property-autogrowheight)

[OdfShape.TextSizing.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextSizing.cs#L10)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public bool? AutoGrowWidth { get; set; }` [#](#property-autogrowwidth)

[OdfShape.TextSizing.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextSizing.cs#L18)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? TextBoxMinimumHeight { get; set; }` [#](#property-textboxminimumheight)

[OdfShape.TextSizing.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextSizing.cs#L25)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? TextBoxMinimumWidth { get; set; }` [#](#property-textboxminimumwidth)

[OdfShape.TextSizing.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextSizing.cs#L31)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? TextBoxMaximumHeight { get; set; }` [#](#property-textboxmaximumheight)

[OdfShape.TextSizing.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextSizing.cs#L37)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

`public OdfLength? TextBoxMaximumWidth { get; set; }` [#](#property-textboxmaximumwidth)

[OdfShape.TextSizing.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfShape.TextSizing.cs#L43)

Inherited from [OdfShape](/api/open-document/officeimo-opendocument-odfshape/)

<!-- PowerForge markdown artifact sha256:1912AC6DF2E3A2F90287D97960AC482D91614212B70294674010957B7E11A3D9 -->
