Aspose.Tasks.Examples.CSharp.WorkingWithFormulas.ReadFormulasExtendedAttributesFromMPP.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:ReadFormulasExtendedAttributesFromMPP
            // The path to the documents directory.
            // Create project instance
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            Project project1 = new Project(dataDir + "ReadFormulas.mpp"); // Attached test mpp
           
            // Read extended attribute formula
            ExtendedAttributeDefinition attr = project1.ExtendedAttributes[0];
            Console.WriteLine("Attribute Formula: " + attr.Formula);
            // ExEnd:ReadFormulasExtendedAttributesFromMPP
        }
    }
ReadFormulasExtendedAttributesFromMPP