احصل على Visio Shape Inherit Fill
Contents
[
Hide
]
استرجع بيانات التعبئة الموروثة لشكل Visio
يمكن أن ترث أشكال Visio النمط الأصل والشكل الرئيسي. قد يحصل المطورون على بيانات التعبئة الموروثة لشكل Visio. الخاصية InheritFill ، المكشوفة بواسطةشكل 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) | |
{ | |
Fill f = shape.InheritFill; | |
Console.WriteLine(f.FillForegnd.Value); | |
Console.WriteLine(f.FillPattern.Value); | |
Console.WriteLine(f.ShdwForegnd.Value); | |
Console.WriteLine(f.ShdwPattern.Value); | |
} |