API Reference
OdgShapes
An editable drawing-page, master or group collection. Unknown drawing elements remain visible and preserved.
Inheritance
- Object
- OdgShapes
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OdgPage.MasterShapes
- Property OdgPage.Shapes
- Property OdgShape.Children
Methods
public OdgShape AddConnector(OfficePoint start, OfficePoint end, OdgConnectorKind kind = Line, String name = null) #OdgShapeAdds 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 System.String = null
public OdgShape AddConnector(OdgGluePoint start, OdgGluePoint end, String name = null) #OdgShapeAdds a straight connector attached to two explicit glue points on this page or master.
Parameters
- start OfficeIMO.OpenDocument.OdgGluePoint
- end OfficeIMO.OpenDocument.OdgGluePoint
- name System.String = null
public OdgShape AddEllipse(OdfRect bounds, String name = null) #OdgShapeAdds an ellipse.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- name System.String = null
public OdgShape AddGroup(String name = null) #OdgShapeAdds a group; its Children collection accepts the same shape operations.
Parameters
- name System.String = null
public OdgShape AddImage(Byte[] data, String fileName, OdfRect bounds, String name = null) #OdgShapeAdds an embedded image using the existing ODF image store.
Parameters
- data System.Byte[]
- fileName System.String
- bounds OfficeIMO.OpenDocument.OdfRect
- name System.String = null
public OdgShape AddLine(OdfLength x1, OdfLength y1, OdfLength x2, OdfLength y2, String name = null) #OdgShapeAdds a line with absolute page coordinates.
Parameters
- x1 OfficeIMO.OpenDocument.OdfLength
- y1 OfficeIMO.OpenDocument.OdfLength
- x2 OfficeIMO.OpenDocument.OdfLength
- y2 OfficeIMO.OpenDocument.OdfLength
- name System.String = null
public OdgShape AddPath(OdfRect bounds, OdfViewBox viewBox, String pathData, String name = null) #OdgShapeAdds 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 System.String
- name System.String = null
public OdgShape AddPath(OdfRect bounds, OdfViewBox viewBox, IEnumerable<OfficePathCommand> commands, String name = null) #OdgShapeAdds a path using shared Drawing commands in the supplied local view box.
Parameters
- arg1 OfficeIMO.OpenDocument.OdfRect
- arg2 OfficeIMO.OpenDocument.OdfViewBox
- arg3 System.Collections.Generic.IEnumerable{OfficeIMO.Drawing.OfficePathCommand}
- arg4 System.String = null
public OdgShape AddPolygon(OdfRect bounds, OdfViewBox viewBox, IEnumerable<OfficePoint> points, String name = null) #OdgShapeAdds 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 System.String = null
public OdgShape AddPolyline(OdfRect bounds, OdfViewBox viewBox, IEnumerable<OfficePoint> points, String name = null) #OdgShapeAdds 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 System.String = null
public OdgShape AddRectangle(OdfRect bounds, String name = null) #OdgShapeAdds a rectangle.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- name System.String = null
public OdgShape AddRoundedRectangle(OdfRect bounds, OdfLength radius, String name = null) #OdgShapeAdds a rectangle with circular corners. Oversized radii are clamped during rendering.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- radius OfficeIMO.OpenDocument.OdfLength
- name System.String = null
public OdgShape AddTextBox(OdfRect bounds, String text, String name = null) #OdgShapeAdds a text frame.
Parameters
- bounds OfficeIMO.OpenDocument.OdfRect
- text System.String
- name System.String = null
public IEnumerator<OdgShape> GetEnumerator() #IEnumerator<OdgShape>Returns an enumerator that iterates through the collection.
Returns
An enumerator that can be used to iterate through the collection.
public Void Move(Int32 sourceIndex, Int32 destinationIndex) #VoidChanges a shape's paint-order position.
Parameters
- sourceIndex System.Int32
- destinationIndex System.Int32
public Void RemoveAt(Int32 index) #VoidRemoves one shape, including its children.
Parameters
- index System.Int32