ASP.NET Pack Programmer's Guide
DiagramItem Members
Constructors Methods
 


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.

 Public Constructors

  Name Description

DiagramItem

Initializes a new instance of the DiagramItem class.

 Public Methods

  Name Description

addCanvasElements

Derived classes must implement this method by adding their graphics primitives to the canvas.elements collection.

allowDrag

Invoked to validate the drag operation.

cancelDrag

Invoked when the interactive modification of this object has been canceled.

containsPoint

Determines whether this item contains the specified point.

endDrag

Invoked when the user stops dragging this item.

fromJson

Deserializes this item from a JSON string.

getBrush

Gets the object that specifies how to paint the interior of the DiagramItem.

getContainer

Gets the parent container node of this item.

getEffectiveBrush

Gets the effective brush that should be used to paint this item.

getEffectiveFont

Gets the effective font that should be used to render this item's text.

getEffectiveFontName

Gets the name of the effective font that should be used to render this item's text.

getEffectiveFontSize

Gets the size of the effective font that should be used to render this item's text.

getEffectiveFontStyle

Gets the style of the effective font that should be used to render this item's text.

getEffectiveShadowColor

Gets the effective color that should be used to render this item's shadow.

getEffectiveStroke

Gets the effective color that should be used to stroke this item.

getEffectiveStrokeDashStyle

Gets the effective line dash pattern that should be applied when stroking this item.

getEffectiveStrokeThickness

Gets the effective line thickness that should be applied when stroking this item.

getEffectiveTextColor

Gets the effective text color that should be used to render this item's text.

getEffectiveTextStroke

Gets the effective text color that should be used to render this item's text outline.

getEffectiveTextStrokeThickness

Gets the effective width of the text outline of this item.

getFont

Gets the font used to render this item's text.

getGraphicsContent

Returns the array with visual elements that are used to represent this item on the canvas.

getHyperLink

Gets the hyperlink associated with this diagram item.

getId

Gets the id of the item.

getIgnoreLayout

Gets a value indicating whether the position of this item should not be changed by automatic layout methods.

getLayoutTraits

Gets an object containing properties of the node specific to some layout algorithms.

getLineAlignment

Gets how the text should be vertically aligned inside the item's bounding rectangle.

getLocked

Gets a value indicating whether users are allowed to modify this item.

getParent

Gets the parent diagram.

getPen

Gets an object used to paint the frame of the item.

getRepaintBounds

Gets the repaint region for this item, taking into account factors such as pen width, selection handles and shadow.

getSelected

Gets a value indicating whether a DiagramItem is selected.

getShadowColor

Gets the color used to draw the shadow of this item.

getShadowOffsetX

Gets the horizontal offset of the item's shadow.

getShadowOffsetY

Gets the vertical offset of the item's shadow.

getStroke

Gets a string specifying the color used to stroke the item's frame.

getStrokeDashStyle

Gets the line dash pattern applied when stroking the item's frame.

getStrokeThickness

Gets the line width applied when stroking the item's frame.

getStyle

Gets the style associated with this item.

getTag

Gets the tag of the item.

getText

Gets the string containing the DiagramItem's text.

getTextAlignment

Gets how the text should be aligned inside the item's bounding rectangle.

getTextColor

Gets a string specifying the color of the text of this item.

getTextComponent

Gets the Text object instance that is used as a container for the item's text.

getTextPadding

Gets the spacing between the item boundaries and its text.

getTextStroke

Gets a string specifying the color of the text outline of this item.

getTextStrokeThickness

Gets the width of the text outline of this item.

getTooltip

Gets the tooltip text that should be displayed when the mouse hovers over this item.

getVisible

Gets a value indicating whether this item is visible.

getWeight

Gets a weight value used in layout and path-finding algorithms.

getZIndex

Gets the z-order position of the object.

hitTest

Returns the diagram item that contains the specified point.

loadFromXml

Loads the item content from an XML element.

onRemove

Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo.

removeCanvasElements

Derived classes must implement this method by removing their graphics primitives from the canvas.elements collection.

saveLocationState

Saves the state of this DiagramItem.

saveToXml

Saves the item content into an XML element.

setBrush

Sets an object that specifies how to paint the interior of the DiagramItem.

setFont

Sets the font used to render this item's text.

setHyperLink

Sets the hyperlink associated with this diagram item.

setId

Lets you set any object as an id for this item.

setIgnoreLayout

Sets a value indicating whether the position of this item should not be changed by automatic layout methods.

setLineAlignment

Sets how the text should be vertically aligned inside the item's bounding rectangle.

setLocked

Sets a value indicating whether users are allowed to modify this item.

setPen

Sets an object used to paint the frame of the item.

setSelected

Sets a value indicating whether a DiagramItem is selected.

setShadowColor

Sets the color used to draw the shadow of this item.

setShadowOffsetX

Sets the horizonal offset of the item's shadow.

setShadowOffsetY

Sets the vertical offset of the item's shadow.

setStroke

Sets a string specifying the color used to stroke the item's frame.

setStrokeDashStyle

Sets the line dash pattern applied when stroking the item's frame.

setStrokeThickness

Sets the line width applied when stroking the item's frame.

setStyle

Sets the style associated with this item.

setTag

Lets you set any object as a tag for this item.

setText

Sets a string containing the DiagramItem's text.

setTextAlignment

Sets how the text should be aligned inside the item's bounding rectangle.

setTextColor

Sets a string specifying the color of the text of this item.

setTextPadding

Sets the spacing between the item boundaries and its text.

setTextStroke

Sets a string specifying the color of the text outline of this item.

setTextStrokeThickness

Sets the width of the text outline of this item.

setTooltip

Sets the tooltip text that should be displayed when the mouse hovers over this item.

setVisible

Sets a value indicating whether this item is visible.

setWeight

Sets a weight value used in layout and path-finding algorithms.

setZIndex

Sets the z-order position of the object.

startDrag

Invoked when the user starts dragging this item.

toJson

Serializes this item into a JSON string.

updateCanvasElements

Derived classes must implement this method to update the item's visual elements.

updateDrag

Invoked while the user drags this item.

 See Also

DiagramItem Class
MindFusion.Diagramming Namespace