Represents an item in the diagram document. All classes representing diagram elements derive from DiagramItem.
The following tables list the members exposed by the DiagramItem type.
Name | Description | |
---|---|---|
![]() |
Overloaded. Initializes a new instance of the DiagramItem class. |
Name | Description | |
---|---|---|
![]() |
For internal use. |
Name | Description | |
---|---|---|
![]() |
Gets or sets the brush used to fill the interior of this item. |
|
![]() |
Gets the effective brush of the item. |
|
![]() |
Gets the currently effective font of the item. |
|
![]() |
Gets the effective pen of the item. |
|
![]() |
Gets the effective shadow brush of the item. |
|
![]() |
Gets the effective text brush of the item. |
|
![]() |
Gets or sets the font used to render the item's text. |
|
![]() |
Gets or sets the hyperlink associated with this diagram item. |
|
![]() |
Gets or sets user-defined identifier associated with this item. |
|
![]() |
Gets or sets a value indicating whether the position of this item should not be changed by automatic layout methods. |
|
![]() |
Gets or sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with a layer. |
|
![]() |
Contains layout properties of the node, used by some layout algorithms and by DiagramView3D. |
|
![]() |
Gets or sets a value indicating whether users are allowed to edit the diagram item. |
|
![]() |
Gets the diagram that contains this item. |
|
![]() |
Gets or sets the pen used to paint the frame of the item. |
|
![]() |
Gets or sets a value indicating whether to print the item. |
|
![]() |
For internal use. |
|
![]() |
Gets or sets a value indicating whether a diagram item is selected. |
|
![]() |
Gets or sets the brush used to paint the item's shadow. |
|
![]() |
Gets or sets the horizontal offset of the shadow of this item. |
|
![]() |
Gets or sets the vertical offset of the shadow of this item. |
|
![]() |
Gets or sets the style associated with the item. |
|
![]() |
Gets a reference to the group of items that are attached to this one. |
|
![]() |
Gets or sets user-defined data associated with this item. |
|
![]() |
Gets or sets the text displayed by this item. |
|
![]() |
Gets or sets the brush used to paint texts inside the item. |
|
![]() |
Gets or sets the alignment of text displayed inside this item. |
|
![]() |
Gets or sets the spacing between the item boundaries and its text. |
|
![]() |
Gets or sets a short text message displayed when the mouse pointer rests over the diagram element. |
|
![]() |
True if this is a top-level item in the diagram, or false if it is inside a container. |
|
![]() |
Gets or sets a value indicating whether this item is visible. |
|
![]() |
Gets or sets a weight value used in layout and path-finding algorithms. |
|
![]() |
Gets or sets the z-order position of this item. |
Name | Description | |
---|---|---|
![]() |
Returns the diagram measure unit. |
Name | Description | |
---|---|---|
![]() |
Creates a copy of this item. |
|
![]() |
Overloaded. Determines whether this item contains the specified point. |
|
![]() |
Overloaded. |
|
![]() |
For internal use. |
|
![]() |
Draws the item on the specified IGraphics surface. |
|
![]() |
Renders the adjustment handles of this item. |
|
![]() |
Draws the shadow of this item on the specified IGraphics surface. |
|
![]() |
Gets the bounding rectangle of this item. |
|
![]() |
Creates a System.Drawing.Brush object representing the currently effective brush of the item. |
|
![]() |
Creates a System.Drawing.Pen object representing the currently effective pen of the item. |
|
![]() |
Creates a System.Drawing.Brush object representing the currently effective shadow brush of the item. |
|
![]() |
Creates a System.Drawing.Brush object representing the currently effective text brush of the item. |
|
![]() |
Gets a polygon approximating the outline of this object. |
|
![]() |
Gets the repaint region for this item, taking into account factors such as pen, selection handles and shadow. |
|
![]() |
Gets the bounding rectangle of this item when it is rotated. |
|
![]() |
Gets the tooltip that should be displayed for this item at the specified point. |
|
![]() |
Returns the diagram item that contains the specified point. |
|
![]() |
Determines whether a selection handle of this item is located at the specified point. |
|
![]() |
Finds the Manipulator object located at the specified point. |
|
![]() |
Gets whether the user is prevented from manipulating this item. |
|
![]() |
Gets a flag indicating whether this object is being currently modified interactively by the user. |
|
![]() |
Called after successful deserialization. |
|
![]() |
Returns the items that can be reached from this item by following the path specified in the given query expression. |
|
![]() |
For internal use. |
|
![]() |
For internal use. |
|
![]() |
Moves the item to the bottom of the z-order. |
|
![]() |
Moves the item one level down in the z-order. |
|
![]() |
Moves the item one level up in the z-order. |
|
![]() |
Moves the item to the top of the z-order. |
Name | Description | |
---|---|---|
![]() |
Adds the specified manipulator to this object. |
|
![]() |
Invoked during interactive creation of items to test whether the operation can be completed in the current context. |
|
![]() |
Invoked during interactive modification of items to test whether the operation can be completed in the current context. |
|
![]() |
Invoked when the interactive modification of this object has been canceled. |
|
![]() |
Invoked when the item creation has been completed. |
|
![]() |
Invoked when the item modification has been completed. |
|
![]() |
Creates an item property set corresponding to the type of this diagram item. |
|
![]() |
Creates an item state corresponding to the type of this diagram item. |
|
![]() |
Overloaded. Draws the associated manipulators on a specified graphics. |
|
![]() |
DiagramItem finalizer. |
|
![]() |
Called when the item is completely disassociated from a Diagram, that is, when it is no longer referenced from an item collection or the undo/redo history. |
|
![]() |
Gets the effective value of the style property with the specified name. |
|
![]() |
Deserializes the item from the specified reader. |
|
![]() |
Loads the item from a JSON object. |
|
![]() |
Loads the item content from an XML element. |
|
![]() |
For internal use. |
|
![]() |
Called when the item is added to a Diagram, either by the user, programmatically or via undo / redo. |
|
![]() |
Called when a group child node has been modified. |
|
![]() |
Invoked when the user clicks this item. |
|
![]() |
Invoked when the user double-clicks this item. |
|
![]() |
Called when the diagram's MeasureUnit changes. |
|
![]() |
Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo. |
|
![]() |
Invoked when the associated style or theme have changed. |
|
![]() |
Called when the value of the Text property changes. |
|
![]() |
Called when the value of the TextFormat property changes. |
|
![]() |
Called when the diagram's ZoomFactor changes. |
|
![]() |
Removes the specified manipulator from the object. |
|
![]() |
Overloaded. |
|
![]() |
Restores the properties of this diagram item. |
|
![]() |
Restores the state of this diagram item. |
|
![]() |
Saves the properties of this diagram item. |
|
![]() |
Saves the state of this diagram item. |
|
![]() |
Serializes the item to the specified writer. |
|
![]() |
Saves the item as a JSON object. |
|
![]() |
Saves the item content into an XML element. |
|
![]() |
Marks the diagram as changed. |
|
![]() |
Sets whether the item is in expanded or collapsed state. |
|
![]() |
Called during deserialization, after all objects have been instantiated, in order to update the references between them. |
|
![]() |
Determines whether the item should be rendered in the current context. |
|
![]() |
Invoked once when the user starts creating a new item interactively. |
|
![]() |
Invoked when the user starts modifying this item interactively. |
|
![]() |
Invoked during interactive creation of this item. |
|
![]() |
Called to update the positions of subordinate nodes attached to this item when the attachment style is set to ControlledByMaster. |
|
![]() |
Invoked during interactive modification of this item. |