Represents an item in the diagram model. 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 | |
---|---|---|
Gets or sets an object specifying how to fill the interior of this item. |
||
Gets the parent ContainerNode containing this node. |
||
Gets the effective brush that should be used to paint this item. |
||
Gets the effective brush that should be used to paint node's caption bar. |
||
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 array that should be applied when stroking this item. |
||
Gets the effective line dash offset that should be applied when stroking 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 or sets the font used to render item's text. |
||
Gets an array of visual elements used to render this item on the canvas. |
||
Gets or sets the hyperlink associated with this diagram item. |
||
Gets or sets a custom 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 an object containing properties specific to individual layout algorithms. |
||
Gets or sets the vertical alignment of item's text. |
||
Gets or sets whether users are allowed to interact with this item. |
||
Gets the Diagram to which this item belongs. |
||
Gets or sets the color used to stroke item's borders. |
||
Gets or sets a value indicating whether a diagram item is selected. |
||
Gets or sets the color used to draw item's shadow. |
||
Gets or sets the horizontal offset of item's shadow. |
||
Gets or sets the vertical offset of item's shadow. |
||
Gets or sets the color used to stroke item's frame. |
||
Gets or sets an array of values specifying the dash pattern. |
||
Gets or sets the the distance between the line start and the beginning of the dash pattern. |
||
Gets or sets the line dash pattern applied when stroking item's frame. |
||
Gets or sets the line width applied when stroking item's frame. |
||
Gets or sets the style associated with this item. |
||
Gets or sets custom data tag associated with this item. |
||
Gets or sets the text label displayed by this item. |
||
Gets or sets the horizontal alignment of item's text. |
||
Gets or sets the color used to fill item's text. |
||
Gets the Text object instance used to render item's text. |
||
Gets or sets the padding distance between item's boundaries and text label. |
||
Gets or sets the color used to stroke item's text. |
||
Gets or sets the outline width of item's text. |
||
Gets or sets tooltip text that should be displayed when the mouse hovers over this item. |
||
Gets if this is a top-level item in the diagram. |
||
Gets or sets a value indicating whether this item is visible. |
||
Gets or sets a weight value used by layout and path-finding algorithms. |
||
Gets the z-order position of this item. |
Name | Description | |
---|---|---|
Derived classes must implement this method by adding their graphics primitives to the canvas.elements collection. |
||
Invoked to validate the drag operation. |
||
Creates a copy of this item. |
||
Determines whether this item contains the specified point. |
||
Invoked when the user stops dragging this item. |
||
Deserializes this item from a JSON object. |
||
Gets the repaint region for this item, taking into account factors such as pen width, selection handles and shadow. |
||
Returns the diagram item that contains the specified point. |
||
Invalidates the region of the canvas, that matches the item's repaint bounds. |
||
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. |
||
Loads the properties of this diagram item. |
||
Saves the state of this DiagramItem. |
||
Saves the properties of this diagram item. |
||
Saves the item content into an XML element. |
||
Invoked when the user starts dragging this item. |
||
Serializes this item into a JSON object. |
||
Derived classes must implement this method to update the item's visual elements. |
||
Invoked while the user drags this item. |