أدخل عنصر تحكم ActiveX في Visio Diagram
Contents
[
Hide
]
يمكن للمطورين إضافة عناصر تحكم ActiveX مباشرة إلى رسومات Microsoft Visio لجعل Visio diagram تفاعليًا باستخدامAspose.Diagram for .NET API.
أدخل نموذج برمجة عنصر تحكم ActiveX
صفحة تقدم class طريقة AddActiveXControl وتسمح للمطورين بإدراج أي نوع من عناصر تحكم ActiveX مثل زر الأمر ومربع التحرير والسرد ومربع الاختيار ومربع القائمة ومربع النص وزر الدوران وزر الاختيار والتسمية والصورة وزر التبديل وشريط التمرير.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioActiveXControls(); | |
// Instantiate Diagram Object | |
Diagram diagram = new Diagram(); | |
// Insert an ActiveX control | |
diagram.Pages[0].AddActiveXControl(ControlType.Image, 1, 1, 1, 1); | |
// Save diagram | |
diagram.Save(dataDir + "InsertActiveXControl_out.vsdx", SaveFileFormat.VSDX); |