Edytuj

Udostępnij za pośrednictwem


DiagramNode Interface

Definition

Represents a single diagram node within a diagram.

public interface class DiagramNode
[System.Runtime.InteropServices.Guid("000209E9-0000-0000-C000-000000000046")]
public interface DiagramNode
type DiagramNode = interface
Public Interface DiagramNode
Attributes

Remarks

The DiagramNode object is a member of the DiagramNodes collection.

Use the DiagramNode property of the Shape or ShapeRange object to return a DiagramNode object. Use the AddNode(MsoRelativeNodePosition, MsoDiagramNodeType) method to add a node to a diagram.

Use the Delete() method to remove a node from a diagram.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Children

Returns a DiagramNodeChildren object that contains all of the children of the specified diagram node.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Diagram

Returns a Diagram object to which a diagram node belongs.

Layout

Returns or sets a MsoOrgChartLayoutType constant to indicate the formatting of the child nodes in an organization chart.

Parent

Returns an object that represents the parent object of the specified object.

Root

Returns a DiagramNode object that represents the root diagram node to which the source diagram node belongs.

Shape

Returns a Shape object for the specified diagram node.

TextShape

Returns a Shape object that represents the shape of the text box associated with a diagram node.

Methods

AddNode(MsoRelativeNodePosition, MsoDiagramNodeType)

Creates a diagram node, returning a DiagramNode object that represents the new diagram node. For conceptual diagrams, the DiagramNode object is added to the end of the shapes list.

CloneNode(Boolean, DiagramNode, MsoRelativeNodePosition)

Clones a specified diagram node. Returns a DiagramNode object that represents the clone.

Delete()

Deletes the specified object.

MoveNode(DiagramNode, MsoRelativeNodePosition)

Moves a diagram node and any of its child nodes within a diagram.

NextNode()

Returns the next DiagramNode object in a collection of diagram nodes.

PrevNode()

Returns a DiagramNode object that represents the previous diagram node in a collection of diagram nodes.

ReplaceNode(DiagramNode)

Replaces a target diagram node with the source diagram node.

SwapNode(DiagramNode, MsoRelativeNodePosition)

Swaps the target diagram node with the source diagram node.

TransferChildren(DiagramNode)

Moves the child nodes of the source diagram node to the target (receiving) diagram node.

Applies to