Aspose.Diagram.Examples.CSharp.Working_with_Masters.CheckMasterPresencebyID.Run C# (CSharp) Méthode

Run() public static méthode

public static Run ( ) : void
Résultat void
        public static void Run() 
        {
            // ExStart:CheckMasterPresencebyID
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Master();

            // Call the diagram constructor to load diagram from a VDX file
            Diagram diagram = new Diagram(dataDir + "Basic Shapes.vss");

            // Check master by id
            bool isPresent = diagram.Masters.IsExist(2);

            Console.WriteLine("Master Presence : " + isPresent);
            // ExEnd:CheckMasterPresencebyID
        }
    }
CheckMasterPresencebyID