Back to Devexpress

DiagramItem Members

windowsforms-devexpress-dot-xtradiagram-dot-diagramitem-dot-underscore-members.md

latest19.7 KB
Original Source

DiagramItem Members

The base class for diagram items.

Constructors

NameDescription
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

NameDescription
AccessibleObjectGets an object that contains accessibility information about the diagram item.
ActualConnectionPointsReturns the list of connection point locations.
ActualPaddingGets the actual padding for the diagram item.
ActualPaddingFGets the actual padding for the diagram item.
AffectedByLayoutAlgorithmsSpecifies whether the item can be realigned by the automatic layout algoritms.
AnchorsGets or sets the sides of the root item (page) to which the current DiagramItem object is anchored.
AngleSpecifies the angle by which the diagram item is rotated counterclockwise around its anchor point.
AppearanceProvides access to the item’s appearance settings.
AreSubordinatesVisibleGets whether the current item’s subordinates are visible.
BackgroundIdThis member supports the internal infrastructure, and is not intended to be used directly from your code.
BindingsGets a collection of current diagram item’s bindings.
BoundsGets or sets the item bounds.
CanAttachConnectorBeginPointSpecifies whether end-users can attach a connector’s beginning point to the item.
CanAttachConnectorEndPointSpecifies whether end-users can attach the end point of a connector to the item.
CanChangeParentSpecifies whether to allow end-users to place the item into another container.
CanCopySpecifies whether to allow end-users to copy the item to the clipboard.
CanCopyWithoutParentSpecifies whether to allow end-users to copy the item placed in a container.
CanDeleteSpecifies whether to allow end-users to delete the item.
CanDeleteWithoutParentSpecifies whether to allow end-users to delete the item placed in a container.
CanEditSpecifies whether to allow end-users to edit the text displayed by the item.
CanHideSubordinatesGets 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.
CanMoveSpecifies whether to allow end-users to move the item across the canvas.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
CanResizeSpecifies whether to allow end-users to resize the item.
CanRotateSpecifies whether to allow end-users to rotate the item.
CanSelectSpecifies whether to allow end-users to select the item.
CanSnapToOtherItemsSpecifies whether the item can snap to other items.
CanSnapToThisItemSpecifies whether other items can snap to this item.
CollapseButtonHorizontalAlignmentGets or sets the horizontal alignment of the collapse button’s border relative to its actual position.
CollapseButtonOffsetGets or sets the collapse button’s offset.
CollapseButtonPositionGets or sets the position of the collapse button.
CollapseButtonVerticalAlignmentGets or sets the vertical alignment of the collapse button’s border relative to its actual position.
CollapseButtonVisibilityModeGets or sets a value that indicates when the collapse button is displayed.
ConnectionPointsSpecifies the list of points on the perimeter of a shape at which connectors can terminate.
ContainerGets the IContainer that contains the Component. Inherited from Component.
CustomStyleIdThis member supports the internal infrastructure, and is not intended to be used directly from your code.
DataContextGets or sets the data item bound to the diagram item.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
ForegroundIdThis member supports the internal infrastructure, and is not intended to be used directly from your code.
HeightGets or sets the item height.
IncomingConnectorsGets the collection of the current item’s incoming connectors.
IsDisposedGets whether the current diagram item is disposed.
IsSelectedGets whether the current item is selected.
IsTextEditModeGets whether the diagram item’s text is currently being edited.
IsVisibleGets whether the current diagram item is visible.
MinHeightGets or sets the minimum item height.
MinSizeGets or sets the minimum item size.
MinWidthGets or sets the minimum item width.
MoveWithSubordinatesGets or sets whether moving the current diagram item also moves its subordinates.
OutgoingConnectorsGets the collection of the current item’s outgoing connectors.
OwnerGets the owner of the current diagram item.
PaddingGets or sets the amount of space between the item’s borders and its contents.
ParentItemReturns the current item’s parent item.
PositionGets or sets the coordinates of the item’s upper left corner relative to the diagram canvas.
SelectionLayerThis member supports the internal infrastructure, and is not intended to be used directly from your code.
SiteGets or sets the ISite of the Component. Inherited from Component.
SizeGets or sets the size of the item.
StrokeIdThis member supports the internal infrastructure, and is not intended to be used directly from your code.
TabStopGets or sets whether the current item can be navigated to during item navigation using the TAB key.
TagGets or sets an arbitrary object value that can be used to store custom information about this element.
TemplateConditionGets or sets a condition that is used to choose a template for the diagram item.
TemplateNameIdentifies the item as a template used by data binding controllers.
ThemeStyleIdGets or sets the identifier of a style applied to the diagram item.
WeightThis member supports the internal infrastructure and is not intended to be used directly from your code.
WidthGets or sets the item width.
XFor internal use.
YFor internal use.

Methods

NameDescription
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) staticDetermines 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) protectedReturns 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() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) staticDetermines 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

NameDescription
AngleChangedFires each time the value of the DiagramItem.Angle property is changed.
BoundsChangedFires each time the value of the DiagramItem.Bounds property is changed.
CanHideSubordinatesChanged
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
HeightChangedFires each time the value of the DiagramItem.Height property is changed.
PositionChangedFires each time the value of the DiagramItem.Position property is changed.
SizeChangedFires each time the value of either DiagramItem.Height or DiagramItem.Width property is changed.
WidthChangedFires each time the value of the DiagramItem.Width property is changed.
XChangedFires each time the value of the DiagramItem.X property is changed.
YChangedFires each time the value of the DiagramItem.Y property is changed.

See Also

DiagramItem Class

DevExpress.XtraDiagram Namespace