Skip to main content

DiagramItem Members

The base class for diagram items.

Constructors

Name Description
DiagramItem() Initializes a new instance of the DiagramItem class.
DiagramItem(RectangleF) Initializes a new instance of the DiagramItem class.
DiagramItem(Single, Single, Single, Single) Initializes a new instance of the DiagramItem class.

Properties

Name Description
AccessibleObject Gets an object that contains accessibility information about the diagram item.
ActualConnectionPoints Returns the list of connection point locations.
ActualPadding Gets the actual padding for the diagram item.
ActualPaddingF Gets the actual padding for the diagram item.
AffectedByLayoutAlgorithms Specifies whether the item can be realigned by the automatic layout algoritms.
Anchors Gets or sets the sides of the root item (page) to which the current DiagramItem object is anchored.
Angle Specifies the angle by which the diagram item is rotated counterclockwise around its anchor point.
Appearance Provides access to the item’s appearance settings.
AreSubordinatesVisible Gets whether the current item’s subordinates are visible.
BackgroundId This member supports the internal infrastructure, and is not intended to be used directly from your code.
Bindings Gets a collection of current diagram item’s bindings.
Bounds Gets or sets the item bounds.
CanAttachConnectorBeginPoint Specifies whether end-users can attach a connector’s beginning point to the item.
CanAttachConnectorEndPoint Specifies whether end-users can attach the end point of a connector to the item.
CanChangeParent Specifies whether to allow end-users to place the item into another container.
CanCopy Specifies whether to allow end-users to copy the item to the clipboard.
CanCopyWithoutParent Specifies whether to allow end-users to copy the item placed in a container.
CanDelete Specifies whether to allow end-users to delete the item.
CanDeleteWithoutParent Specifies whether to allow end-users to delete the item placed in a container.
CanEdit Specifies whether to allow end-users to edit the text displayed by the item.
CanHideSubordinates Gets or sets whether to display the expand-collapse button below the diagram item that allows an end-user to show/hide the item’s subordinates.
CanMove Specifies whether to allow end-users to move the item across the canvas.
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
CanResize Specifies whether to allow end-users to resize the item.
CanRotate Specifies whether to allow end-users to rotate the item.
CanSelect Specifies whether to allow end-users to select the item.
CanSnapToOtherItems Specifies whether the item can snap to other items.
CanSnapToThisItem Specifies whether other items can snap to this item.
CollapseButtonHorizontalAlignment Gets or sets the horizontal alignment of the collapse button’s border relative to its actual position.
CollapseButtonOffset Gets or sets the collapse button’s offset.
CollapseButtonPosition Gets or sets the position of the collapse button.
CollapseButtonVerticalAlignment Gets or sets the vertical alignment of the collapse button’s border relative to its actual position.
CollapseButtonVisibilityMode Gets or sets a value that indicates when the collapse button is displayed.
ConnectionPoints Specifies the list of points on the perimeter of a shape at which connectors can terminate.
Container Gets the IContainer that contains the Component. Inherited from Component.
CustomStyleId This member supports the internal infrastructure, and is not intended to be used directly from your code.
DataContext Gets or sets the data item bound to the diagram item.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
ForegroundId This member supports the internal infrastructure, and is not intended to be used directly from your code.
Height Gets or sets the item height.
IncomingConnectors Gets the collection of the current item’s incoming connectors.
IsDisposed Gets whether the current diagram item is disposed.
IsSelected Gets whether the current item is selected.
IsTextEditMode Gets whether the diagram item’s text is currently being edited.
IsVisible Gets whether the current diagram item is visible.
MinHeight Gets or sets the minimum item height.
MinSize Gets or sets the minimum item size.
MinWidth Gets or sets the minimum item width.
MoveWithSubordinates Gets or sets whether moving the current diagram item also moves its subordinates.
OutgoingConnectors Gets the collection of the current item’s outgoing connectors.
Owner Gets the owner of the current diagram item.
Padding Gets or sets the amount of space between the item’s borders and its contents.
ParentItem Returns the current item’s parent item.
Position Gets or sets the coordinates of the item’s upper left corner relative to the diagram canvas.
SelectionLayer This member supports the internal infrastructure, and is not intended to be used directly from your code.
Site Gets or sets the ISite of the Component. Inherited from Component.
Size Gets or sets the size of the item.
StrokeId This member supports the internal infrastructure, and is not intended to be used directly from your code.
TabStop Gets or sets whether the current item can be navigated to during item navigation using the TAB key.
Tag Gets or sets an arbitrary object value that can be used to store custom information about this element.
TemplateCondition Gets or sets a condition that is used to choose a template for the diagram item.
TemplateName Identifies the item as a template used by data binding controllers.
ThemeStyleId Gets or sets the identifier of a style applied to the diagram item.
Weight This member supports the internal infrastructure and is not intended to be used directly from your code.
Width Gets or sets the item width.
X For internal use.
Y For internal use.

Methods

Name Description
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose() Releases all resources used by the Component. Inherited from Component.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetDiagram() Gets the diagram control that is the owner of the diagram item.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.

Events

Name Description
AngleChanged Fires each time the value of the DiagramItem.Angle property is changed.
BoundsChanged Fires each time the value of the DiagramItem.Bounds property is changed.
CanHideSubordinatesChanged
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
HeightChanged Fires each time the value of the DiagramItem.Height property is changed.
PositionChanged Fires each time the value of the DiagramItem.Position property is changed.
SizeChanged Fires each time the value of either DiagramItem.Height or DiagramItem.Width property is changed.
WidthChanged Fires each time the value of the DiagramItem.Width property is changed.
XChanged Fires each time the value of the DiagramItem.X property is changed.
YChanged Fires each time the value of the DiagramItem.Y property is changed.
See Also