[]
Represents a canvas shape element in a body content.
public class CanvasShape : ShapeBase, IBrowsable<CanvasShape>
Gets the shape effects formatting properties.
public ShapeEffects Effects { get; }
Gets the fill formatting properties.
public FillFormat Fill { get; }
Gets the line formatting properties.
public LineFormat Line { get; }
Gets the next canvas.
public CanvasShape Next { get; }
Gets the previous canvas.
public CanvasShape Previous { get; }
Adds a GroupShape to the end of the canvas shape.
public GroupShape AddGroupShape()
The added GroupShape.
Adds a GroupShape to the end of the canvas shape.
public GroupShape AddGroupShape(float width, float height)
width
floatThe group shape width, in points.
height
floatThe group shape height, in points.
The added GroupShape.
Adds an InkShape to the end of the canvas shape.
public InkShape AddInkShape(XmlDocument content, float width, float height)
content
System.Xml.XmlDocumentThe System.Xml.XmlDocument ink content.
width
floatThe ink width, in points.
height
floatThe ink height, in points.
Adds an InkShape> to the end of the canvas shape.
public InkShape AddInkShape(XmlDocument content)
content
System.Xml.XmlDocumentThe System.Xml.XmlDocument ink content.
Adds a new Picture to the end of the canvas shape.
public Picture AddPicture()
Adds a new Picture to the end of the canvas shape.
public Picture AddPicture(Image image)
image
GrapeCity.Documents.Drawing.ImageAdds a new Picture to the end of the canvas shape.
public Picture AddPicture(byte[] imageBytes, string contentType, float width, float height)
imageBytes
byte[]The image data representing the picture.
contentType
stringThe content type of the image data.
width
floatThe picture's width, in points.
height
floatThe picture's height, in points.
Adds a new Picture to the end of the canvas shape.
public Picture AddPicture(byte[] imageBytes, string contentType)
imageBytes
byte[]The image data representing the picture.
contentType
stringThe content type of the image data.
public Shape AddShape()
Adds a new Shape with a specified size and text to the end of the canvas shape.
public Shape AddShape(float width, float height, GeometryType type)
width
floatThe shape width, in points.
height
floatThe shape height, in points.
type
GeometryTypeThe geometry type of the shape.
Adds a new Shape with a specified size, text and geometry to the end of the canvas shape.
public Shape AddShape(float width, float height, string text, GeometryType type)
width
floatThe shape width, in points.
height
floatThe shape height, in points.
text
stringIf not null, a TextFrame with this text is added to the shape.
Note that some geometries do not allow text frames (see TextFrameSupported(GeometryType)).
If this parameter is not null and type
specifies one of those geometries, an exception will be thrown.
type
GeometryTypeThe geometry type of the shape.
public Shape AddShape(float width, float height, string text = null)
width
floatThe shape width, in points.
height
floatThe shape height, in points.
text
stringIf not null, a TextFrame with this text is added to the shape.