OdgShapes
OfficeIMO.OpenDocument
An editable drawing-page, master or group collection. Unknown drawing elements remain visible and preserved.
Inheritance
- object
- OdgShapes
Usage
Explore 4 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 4
- Property OdgMasterPage.Shapes
- Property OdgPage.MasterShapes
- Property OdgPage.Shapes
- Property OdgShape.Children
Methods
public OdgShape AddConnector(OfficePoint start, OfficePoint end, OdgConnectorKind kind = Line, string? name = null) #Adds a connector between free points in this collection's coordinate space.
Parameters
- start OfficeIMO.Drawing.OfficePoint
- end OfficeIMO.Drawing.OfficePoint
- kind OfficeIMO.OpenDocument.OdgConnectorKind = Line
- name string? = null
Returns
OdgShapepublic OdgShape AddConnector(OdgGluePoint start, OdgGluePoint end, string? name = null) #Adds a straight connector attached to two explicit glue points on this page or master.
Parameters
- start OfficeIMO.OpenDocument.OdgGluePoint
- end OfficeIMO.OpenDocument.OdgGluePoint
- name string? = null
Returns
OdgShapepublic OdgShape AddEllipse(OdfRect bounds, string? name = null) #Adds an ellipse.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- name string? = null
Returns
OdgShapepublic OdgShape AddGroup(string? name = null) #Adds a group; its Children collection accepts the same shape operations.
Parameters
- name string? = null
Returns
OdgShapepublic OdgShape AddImage(byte[] data, string fileName, OdfRect bounds, string? name = null) #Adds an embedded image using the existing ODF image store.
Parameters
- data byte[]
- fileName string
- bounds OfficeIMO.OpenDocument.OdfRect
- name string? = null
Returns
OdgShapepublic OdgShape AddLine(OdfLength x1, OdfLength y1, OdfLength x2, OdfLength y2, string? name = null) #Adds a line with absolute page coordinates.
Parameters
- x1 OfficeIMO.OpenDocument.OdfLength
- y1 OfficeIMO.OpenDocument.OdfLength
- x2 OfficeIMO.OpenDocument.OdfLength
- y2 OfficeIMO.OpenDocument.OdfLength
- name string? = null
Returns
OdgShapepublic OdgShape AddPath(OdfRect bounds, OdfViewBox viewBox, string pathData, string? name = null) #Adds a path whose SVG data uses the supplied local view box and is scaled to the page bounds.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- viewBox OfficeIMO.OpenDocument.OdfViewBox
- pathData string
- name string? = null
Returns
OdgShapepublic OdgShape AddPath(OdfRect bounds, OdfViewBox viewBox, IEnumerable<OfficePathCommand> commands, string? name = null) #Adds a path using shared Drawing commands in the supplied local view box.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- viewBox OfficeIMO.OpenDocument.OdfViewBox
- commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand>
- name string? = null
Returns
OdgShapepublic OdgShape AddPolygon(OdfRect bounds, OdfViewBox viewBox, IEnumerable<OfficePoint> points, string? name = null) #Adds a closed polygon using integer coordinates in the supplied local view box.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- viewBox OfficeIMO.OpenDocument.OdfViewBox
- points System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePoint>
- name string? = null
Returns
OdgShapepublic OdgShape AddPolyline(OdfRect bounds, OdfViewBox viewBox, IEnumerable<OfficePoint> points, string? name = null) #Adds an open polyline using integer coordinates in the supplied local view box; its initial fill is none.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- viewBox OfficeIMO.OpenDocument.OdfViewBox
- points System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePoint>
- name string? = null
Returns
OdgShapepublic OdgShape AddRectangle(OdfRect bounds, string? name = null) #Adds a rectangle.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- name string? = null
Returns
OdgShapepublic OdgShape AddRoundedRectangle(OdfRect bounds, OdfLength radius, string? name = null) #Adds a rectangle with circular corners. Oversized radii are clamped during rendering.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- radius OfficeIMO.OpenDocument.OdfLength
- name string? = null
Returns
OdgShapepublic OdgShape AddTextBox(OdfRect bounds, string text, string? name = null) #Adds a text frame.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- text string
- name string? = null
Returns
OdgShapepublic IEnumerator<OdgShape> GetEnumerator() #Returns an enumerator that iterates through the collection.
public void Move(int sourceIndex, int destinationIndex) #Changes a shape's paint-order position.
Parameters
- sourceIndex int
- destinationIndex int
Inherited Methods
Properties
public OdgShape this[int index] { get; } #Shape at a zero-based paint-order position.
Parameters
- index int