Diagram Diagram Diagram Interface

Definition

Represents a diagram.

public interface class Diagram
[System.Runtime.InteropServices.Guid("0002446F-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Diagram
Public Interface Diagram
Attributes

Remarks

Use the Diagram property of the Shape object or ShapeRange collection to a return a Diagram object.

You can also convert the current diagram to a different diagram by using the Convert(MsoDiagramType) method.

Note If the current diagram is an organization chart (msoDiagramOrgChart) a run-time error will occur.

There are several types of diagrams to choose from when working with the Diagram object. Refer to the AddDiagram(MsoDiagramType, Single, Single, Single, Single) method to view a list of available diagram types.

Properties

Application Application Application

Returns an Application object that represents the Microsoft Excel application.

AutoFormat AutoFormat AutoFormat

Sets or returns a constant indicating the automatic formatting state for a diagram.

AutoLayout AutoLayout AutoLayout

Returns or sets a constant which determines the automatic positioning of the nodes and connectors in a diagram.

Creator Creator Creator

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

Nodes Nodes Nodes

Returns a DiagramNodes object that contains a flat list of all the nodes in the specified diagram.

Parent Parent Parent

Returns the parent object for the specified object.

Reverse Reverse Reverse

Reverses the nodes in a diagram.

Type Type Type

Returns or sets the diagram type.

Methods

Convert(MsoDiagramType) Convert(MsoDiagramType) Convert(MsoDiagramType)

Converts the current diagram to a different diagram.

FitText() FitText() FitText()

Adjusts the size of the text in the nodes in a diagram to fit within the boundaries of the nodes.

Applies to