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 | |
---|---|---|
Initializes a new instance of the DiagramItem class. |
Name | Description | |
---|---|---|
Derived classes must implement this method by adding their graphics primitives to the canvas.elements collection. |
||
Invoked to validate the drag operation. |
||
Invoked when the interactive modification of this object has been canceled. |
||
Determines whether this item contains the specified point. |
||
Invoked when the user stops dragging this item. |
||
Deserializes this item from a JSON string. |
||
Gets the object that specifies how to paint the interior of the DiagramItem. |
||
Gets the parent container node of this item. |
||
Gets the effective brush that should be used to paint this item. |
||
Gets the effective font that should be used to render this item's text. |
||
Gets the name of the effective font that should be used to render this item's text. |
||
Gets the size of the effective font that should be used to render this item's text. |
||
Gets the style of the effective font that should be used to render this item's text. |
||
Gets the effective color that should be used to render this item's shadow. |
||
Gets the effective color that should be used to stroke this item. |
||
Gets the effective line dash pattern that should be applied when stroking this item. |
||
Gets the effective line thickness that should be applied when stroking this item. |
||
Gets the effective text color that should be used to render this item's text. |
||
Gets the effective text color that should be used to render this item's text outline. |
||
Gets the effective width of the text outline of this item. |
||
Gets the font used to render this item's text. |
||
Returns the array with visual elements that are used to represent this item on the canvas. |
||
Gets the hyperlink associated with this diagram item. |
||
Gets the id of the item. |
||
Gets a value indicating whether the position of this item should not be changed by automatic layout methods. |
||
Gets an object containing properties of the node specific to some layout algorithms. |
||
Gets how the text should be vertically aligned inside the item's bounding rectangle. |
||
Gets a value indicating whether users are allowed to modify this item. |
||
Gets the parent diagram. |
||
Gets an object used to paint the frame of the item. |
||
Gets the repaint region for this item, taking into account factors such as pen width, selection handles and shadow. |
||
Gets a value indicating whether a DiagramItem is selected. |
||
Gets the color used to draw the shadow of this item. |
||
Gets the horizontal offset of the item's shadow. |
||
Gets the vertical offset of the item's shadow. |
||
Gets a string specifying the color used to stroke the item's frame. |
||
Gets the line dash pattern applied when stroking the item's frame. |
||
Gets the line width applied when stroking the item's frame. |
||
Gets the style associated with this item. |
||
Gets the tag of the item. |
||
Gets the string containing the DiagramItem's text. |
||
Gets how the text should be aligned inside the item's bounding rectangle. |
||
Gets a string specifying the color of the text of this item. |
||
Gets the Text object instance that is used as a container for the item's text. |
||
Gets the spacing between the item boundaries and its text. |
||
Gets a string specifying the color of the text outline of this item. |
||
Gets the width of the text outline of this item. |
||
Gets the tooltip text that should be displayed when the mouse hovers over this item. |
||
Gets a value indicating whether this item is visible. |
||
Gets a weight value used in layout and path-finding algorithms. |
||
Gets the z-order position of the object. |
||
Returns the diagram item that contains the specified point. |
||
Loads the item content from an XML element. |
||
Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo. |
||
Derived classes must implement this method by removing their graphics primitives from the canvas.elements collection. |
||
Saves the state of this DiagramItem. |
||
Saves the item content into an XML element. |
||
Sets an object that specifies how to paint the interior of the DiagramItem. |
||
Sets the font used to render this item's text. |
||
Sets the hyperlink associated with this diagram item. |
||
Lets you set any object as an id for this item. |
||
Sets a value indicating whether the position of this item should not be changed by automatic layout methods. |
||
Sets how the text should be vertically aligned inside the item's bounding rectangle. |
||
Sets a value indicating whether users are allowed to modify this item. |
||
Sets an object used to paint the frame of the item. |
||
Sets a value indicating whether a DiagramItem is selected. |
||
Sets the color used to draw the shadow of this item. |
||
Sets the horizonal offset of the item's shadow. |
||
Sets the vertical offset of the item's shadow. |
||
Sets a string specifying the color used to stroke the item's frame. |
||
Sets the line dash pattern applied when stroking the item's frame. |
||
Sets the line width applied when stroking the item's frame. |
||
Sets the style associated with this item. |
||
Lets you set any object as a tag for this item. |
||
Sets a string containing the DiagramItem's text. |
||
Sets how the text should be aligned inside the item's bounding rectangle. |
||
Sets a string specifying the color of the text of this item. |
||
Sets the spacing between the item boundaries and its text. |
||
Sets a string specifying the color of the text outline of this item. |
||
Sets the width of the text outline of this item. |
||
Sets the tooltip text that should be displayed when the mouse hovers over this item. |
||
Sets a value indicating whether this item is visible. |
||
Sets a weight value used in layout and path-finding algorithms. |
||
Sets the z-order position of the object. |
||
Invoked when the user starts dragging this item. |
||
Serializes this item into a JSON string. |
||
Derived classes must implement this method to update the item's visual elements. |
||
Invoked while the user drags this item. |