Repository navigation
ComOffice for Windows and Linux 1.17.0
In Word documents, floating shapes can be moved, sized and deleted, text typed into a text box is saved, pictures
that fill shapes are drawn, and a merged table cell spans its rows. Members are added; nothing in the API changes or
goes away. The evaluation key in the README works until 2027-01-01.
New API, on Windows and Linux:
- Moving, sizing and deleting a floating shape.
WordSceneEditor.SetFloatingShapeGeometry(hostID, shapeIndex, hOffsetPt, vOffsetPt, widthPt, heightPt, caret)moves and sizes drawingshapeIndexof paragraphhostID's
FloatingShapes, one shape or a whole group, as Word does: a group's shapes scale with it, and the drawing's copy for
older readers moves with it.SetShapeLeafFrame(hostID, shapeIndex, leafIndex, xPt, yPt, widthPt, heightPt, caret)
moves and sizes one shape in a group, which stays where it is.RemoveFloatingShape(hostID, shapeIndex, caret)
deletes a shape or a group. Each is one undo step, is kept bySaveAs, and throwsComOfficeKitException
(InvalidArgument) when the drawing cannot be changed. WordShapePictureandWordShapeLeaf.Picture. A shape filled with a picture, which is how Word crops a photo to
a circle or a box, now carries it:Image,CropandFillRect.
Word documents:
- Pictures that fill shapes are drawn inside the shape's outline, in a group too, by
RenderPageand in PDF.
Until now such a shape was read as a floating picture. - Text typed into a text box is saved. A text box as Word writes it, with its copy for older readers, lost on save
the text typed into it. - A table cell merged down over several rows spreads its content over them, as Word does, instead of stretching
the first row.
The package, ComOfficeKit.1.17.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.