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 | |
---|---|---|
Idendifies the Brush dependency property. |
||
Identifies the FontFamily dependency property. |
||
Identifies the FontSize dependency property. |
||
Identifies the FontStretch dependency property. |
||
Identifies the FontStyle dependency property. |
||
Identifies the FontWeight dependency property. |
||
Identifies the Id dependency property. |
||
Identifies the StrokeDashCap dependency property. |
||
Identifies the StrokeDashStyle dependency property. |
||
Identifies the StrokeEndLineCap dependency property. |
||
Identifies the StrokeLineJoin dependency property. |
||
Identifies the StrokeMiterLimit dependency property. |
||
Identifies the Stroke dependency property. |
||
Identifies the StrokeStartLineCap dependency property. |
||
Identifies the StrokeThickness dependency property. |
||
Identifies the TextAlignment dependency property. |
||
Identifies the TextBrush dependency property. |
||
Identifies the TextDecorations dependency property. |
||
Identifies the TextPadding dependency property. |
||
Identifies the Text dependency property. |
||
Identifies the TextTrimming dependency property. |
||
Identifies the TextVerticalAlignment dependency property. |
||
Identifies the TextWrapping dependency property. |
Name | Description | |
---|---|---|
For internal use. |
Name | Description | |
---|---|---|
A Visual that contains the item's adjustment handles. |
||
Gets or sets the brush used to fill the interior of this item. |
||
Gets whether text layout area has limited height. |
||
Gets or sets the preferred font family for this DiagramItem. |
||
Gets or sets the font size for this DiagramItem. |
||
Gets or sets the font-stretching characteristics for this DiagramItem. |
||
Gets or sets the font style for this DiagramItem. |
||
Gets or sets the font weight for this DiagramItem. |
||
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 properties specific to each layout algorithm. |
||
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 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 that specifies how the item outline is painted. |
||
Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn. |
||
Gets or sets the pattern of dashes and gaps used to outline items. |
||
Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the end of a Stroke. |
||
Gets or sets a PenLineJoin enumeration value that specifies the type of join that is used at the vertices of the item's outline. |
||
Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of an item outline element. |
||
Gets or sets a PenLineCap enumeration value that specifies what shape to draw at the start of a Stroke. |
||
Gets or sets the width of the DiagramItem stroke outline. |
||
Gets a reference to the group of items that are attached to this one. |
||
Gets or sets the text displayed inside this item. |
||
Gets or sets a value that indicates the horizontal alignment of text content. |
||
Gets or sets the brush used to draw the item's text. |
||
Gets or sets the effects to apply to the text of this DiagramItem. |
||
Gets or sets the thickness of padding space between the item boundaries and its text. |
||
Gets or sets the text trimming to employ when text overflows the item area. |
||
Gets or sets a value that indicates the vertical alignment of text content. |
||
Gets or sets how this DiagramItem should wrap text. |
||
True if this is a top-level item in the diagram, or false if it is inside a container. |
||
Gets the UIElement associated with this DiagramItem. |
||
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. |
||
Gets the size of this item. |
Name | Description | |
---|---|---|
Clears the local values of all styleable appearance properties. |
||
Creates a copy of this item. |
||
Overloaded. |
||
Overloaded. |
||
Draws the item on the specified DrawingContext object. |
||
Renders the selection handles. |
||
Gets the bounding rectangle of this item. |
||
Returns a Geometry object representing the shape of this item. |
||
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 item rotation angle. |
||
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. |
||
Triggers the manipulator located at the specified point. |
||
Checks whether the specified rectangle intersects with this diagram item. |
||
Returns the ItemLabel located at 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. |
||
Returns the items that can be reached from this item by following the path specified in the given query expression. |
||
Overloaded. |
||
Transforms a point from document coordinates to item coordinates. |
||
Transforms point from item-relative coordinates to document coordinates. |
||
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 this item to specified container element. |
||
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 item creation has been completed. |
||
Overloaded. |
||
Creates an item property set corresponding to the type of this diagram item. |
||
Returns a FrameworkElement used to render this item in the DiagramView. |
||
Creates an item state corresponding to the type of this diagram item. |
||
Draws the associated manipulators in the specified context. |
||
Applies specified function on properties intended to be set from WPF styles. |
||
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 height of this item. |
||
Subtracts the TextPadding values from the specified rectangle. |
||
Gets the width of this item. |
||
Gets the x-coordinate of the current position of this item. |
||
Gets the y-coordinate of the current position of this item. |
||
Loads the item from a JSON object. |
||
Loads the item content from an XML element. |
||
FrameworkElement.MeasureOverride override. |
||
Called when the item is added to a Diagram, either by the user, programmatically or performing undo / redo. |
||
Invoked when any of the item's appearance properties changes. |
||
Called when a child node has been modified. |
||
Called when a child node is being modified. |
||
Called after successful deserialization. |
||
Called when the diagram's MeasureUnit changes. |
||
UIElement.OnMouseDown override. |
||
UIElement.OnMouseUp override. |
||
Called when the item's position changes. |
||
UIElement.OnPreviewMouseWheel override. |
||
UIElement.OnPreviewMouseUp override. |
||
Called when an item is removed from a Diagram, either by the user, programmatically or while performing undo / redo. |
||
UIElement.OnRender override. |
||
Invoked when a FrameworkElement property serializable by DiagramItem changes. |
||
Called when the size of the item changes. |
||
Invoked when any of the item's stroke attributes changes. |
||
Invoked when any of the attributes defined in ITextAttributes changes. |
||
Called when the ZoomFactor changes. |
||
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. |
||
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. |
||
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. |