Shapes.AddDiagram(MsoDiagramType, Single, Single, Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per