احصل على Visio Shape Inherit Line
Contents
[
Hide
]
استرجع بيانات الخط الموروث لشكل Visio
يمكن أن ترث أشكال Visio النمط الأصل والشكل الرئيسي. يمكن للمطورين الحصول على بيانات خط التوريث لشكل Visio أو تعيينها. الخاصية InheritLine ، المكشوفة بواسطةشكل class ، تحتوي على قيم تنسيق الخط للشكل الذي يرثه النمط الأصل والشكل الرئيسي.
استرجاع نموذج برمجة بيانات الخط الموروث
يسترد مقتطف التعليمات البرمجية التالي بيانات الخط الموروثة للشكل. يرجى التحقق من نموذج الكود هذا:
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_Shapes(); | |
// Call a Diagram class constructor to load the VSDX diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
// Get page by name | |
Page page = diagram.Pages.GetPage("Page-3"); | |
foreach (Aspose.Diagram.Shape shape in page.Shapes) | |
{ | |
Line line = shape.InheritLine; | |
Console.WriteLine(line.LinePattern.Value); | |
Console.WriteLine(line.LineColor.Value); | |
Console.WriteLine(line.BeginArrow.Value); | |
Console.WriteLine(line.BeginArrowSize.Value); | |
Console.WriteLine(line.EndArrow.Value); | |
Console.WriteLine(line.EndArrowSize.Value); | |
Console.WriteLine(line.LineWeight.Value); | |
} |