Shapes.AddDiagram(MsoDiagramType, Single, Single, Single, Single) Method

Definition

Creates a diagram. Returns a Shape object that represents the new diagram.

public:
 Microsoft::Office::Interop::Excel::Shape ^ AddDiagram(Microsoft::Office::Core::MsoDiagramType Type, float Left, float Top, float Width, float Height);
public Microsoft.Office.Interop.Excel.Shape AddDiagram (Microsoft.Office.Core.MsoDiagramType Type, float Left, float Top, float Width, float Height);
Public Function AddDiagram (Type As MsoDiagramType, Left As Single, Top As Single, Width As Single, Height As Single) As Shape

Parameters

Type
MsoDiagramType

Required MsoDiagramType. The type of diagram. Can be one of these MsoDiagramType constants:msoDiagramCycle A process diagram with a continuous cycle diagram type.msoDiagramMixed A mixed diagram type.msoDiagramOrgChart A hierarchical relationship diagram type.msoDiagramPyramid A foundation based relationships diagram type.msoDiagramRadial A diagram type showing relationships of a core element.msoDiagramTarget A diagram type showing steps toward a goal.msoDiagramVenn A diagram type showing areas of overlap between elements.

Left
Single

Required Single. The position (in points) of the upper-left corner of the diagram relative to the upper-left corner of the worksheet.

Top
Single

Required Single. The position (in points) of the upper-left top of the diagram relative to the upper-left corner of the worksheet.

Width
Single

Required Single. The width of the diagram, in points.

Height
Single

Required Single. The height of the diagram, in points.

Returns

Applies to