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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기