NShape Reference
ShapeGroup Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
ShapeGroup Class

Previous pageReturn to chapter overviewNext page

Represents a shape group.

public class ShapeGroup: ShapeIShapeGroup

Description

A shape group is only visible at design-time. At run-time the elements of the shape group act exactly like separate shapes.

Public Properties

Name

Description

Angle

Indicates the rotation angle of the group in tenths of degrees.

Children

Provides access to the child shapes.

ControlPointCount

Returns the number of control points.

Diagram

Indicates the diagram this shape is part of.

DisplayService

Specifies the display service for the shape.

LineStyle

Specifies the line style used for drawing.

ModelObject

Specifies the model object the shape represents.

Parent

Indicates the parent shape if this shape is part of an aggregation.

SecurityDomainName

Name of the security domain.

Tag

Specifies a user-defined transient general purpose property.

Template

Indicates the shape's template.

Type

Indicates the shape's type.

X

The X coordinate of the group's position

Y

The Y coordinate of the group's position.

Public Methods

Name

Description

CalculateAbsolutePosition

Calculates coordinates from the given RelativePosition.

CalculateConnectionFoot

Implementation of calculating the foot of a point-to-shape connection.

CalculateNormalVector

Calculates a vector perpendicular to the shape's outline.

CalculateRelativePosition

Calculates the relative position of the given coordinates.

Clone

Creates an exact copy of the group and its members.

Connect

Connects a shape to another shape.

ContainsPoint

Determines whether the given point is inside the shape.

CopyFrom

Copies as many properties as possible from the source shape.

DetachGluePointFromConnectionPoint

Detaches an attached glue control point of this shape from a connection control point of another shape when disconnecting connected shapes.

Disconnect

Disconnects a shape control point from another shape.

Dispose

Disposes the shape. All attached model objects will be notified that this shape will no longer exist.

Draw

Draws the shape.

DrawOutline

Draws the shape's outline.

DrawThumbnail

Draws a thumbnail picture of the shape.

FindNearestControlPoint

Finds the control point, with the least distance to the given coordinates fulfilling the ControlPointCapabilities constraints.

Fit

Fits the shape into the given bounds.

FollowConnectionPointWithGluePoint

Moves a connected glue point when the connection point has moved.

GetBoundingRectangle

Retrieves an axis-aligned bounding box for the shape.

GetConnectionInfo

Retrieves information about a specific connection of the shape.

GetConnectionInfos

Retrieves information about the connections of the shape.

GetControlPointIds

Returns a list of ControlPointId that fulfill at least one of the requested ControlPointCapabilities.

GetControlPointPosition

Returns the position of the indicated control point.

GetMenuItemDefs

Retrieves the list of context menu item definitions of the shape.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

HasControlPointCapability

Tests, whether a control point has at least one of a set of given capabilities.

HitTest

Tests whether the shape has a control point near the given coordinates.

IntersectOutlineWithLineSegment

Calculates the intersection points of the shape's outline with the given line segment.

IntersectsWith

Determines whether the given rectangle intersects with the shape.

Invalidate

Invalidates the shape.

IsConnected

Tests, whether the shape is connected to a given other shape.

MakePreview

Transforms the shape into a preview shape.

MoveBy

Moves the shape by a given distance.

MoveControlPointBy

Moves the control point by a given distance.

NotifyChildLayoutChanged

Notifies the shape that one of its children has been moved.

NotifyChildLayoutChanging

Notifies the shape that one of its children is moved.

NotifyModelChanged

Notifies the shape that a property of its model object has changed.

NotifyStyleChanged

Notifies the shape that the given style has changed.

Rotate

Rotates the shape.

Protected Properties and Fields

Name

Description

IdCore

Specifies the IEntity.Id of this shape.

Owner

The shape collection owning this shape.

Protected Methods

Name

Description

AssignIdCore

Implementation of IEntity.AssignId.

AttachGluePointToConnectionPoint

Attaches a glue control point of this shape to a connection control point of another shape when creating a connection between shapes.

CalculateCells

Calculates the cells occupied by this shape in the diagram's spatial index.

Constructors

Constructs a new shape instance.

DeleteCore

Implementation of IEntity.Delete.

DetachGluePointFromConnectionPoint

Detaches an attached glue control point of this shape from a connection control point of another shape when disconnecting connected shapes.

InitializeToDefault

Initializes this shape with default values.

LoadFieldsCore

Implementation of IEntity.LoadFields.

LoadInnerObjectsCore

Implementation of IEntity.LoadInnerObjects.

SaveFieldsCore

Implementation of IEntity.SaveFields.

SaveInnerObjectsCore

Implementation of IEntity.SaveInnerObjects.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape