[]
Represents a group shape element in a body content.
public class GroupShape : ShapeBase, IBrowsable<GroupShape>
Gets or sets the location of the child extents rectangle used for calculations of grouping, scaling, and rotation behavior of shapes placed within a group, in points.
public PointF ChildrenOffset { get; set; }
Gets or sets the size dimensions of the child extents rectangle used for calculations of grouping, scaling, and rotation behavior of shapes placed within a group, in points.
public SizeF ChildrenSize { get; set; }
Gets the shape effects formatting properties.
public ShapeEffects Effects { get; }
Gets the fill formatting properties.
public FillFormat Fill { get; }
Gets the next group shape.
public GroupShape Next { get; }
Gets the previous group shape.
public GroupShape Previous { get; }
Adds a GroupShape to the end of the group shape.
public GroupShape AddGroupShape()
The added GroupShape.
Adds a GroupShape to the end of the group 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 group 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 group shape.
public InkShape AddInkShape(XmlDocument content)
content
System.Xml.XmlDocumentThe System.Xml.XmlDocument ink content.
Adds a new Picture to the end of the group shape.
public Picture AddPicture()
Adds a new Picture to the end of the group shape.
public Picture AddPicture(Image image)
image
GrapeCity.Documents.Drawing.ImageAdds a new Picture to the end of the group 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 group 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 group 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 group 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.
public void ApplyEffectsPreset(ShapeEffectsPreset preset)
preset
ShapeEffectsPresetApplies the group fill to all shape and canvas children.
public void ApplyGroupFill()
Ungroups the nested shapes.
public void Unbind()