Aspose.Tasks.Examples.CSharp.Articles.RenderXAMLWithOptions.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

            // ExStart:RenderXAMLWithOptions
            Project project = new Project(dataDir + "Project2.mpp");
            const string resultFile = "RenderXAMLWithOptions_out.xaml";
            SaveOptions options = new XamlOptions();
            options.FitContent = true;
            options.LegendOnEachPage = false;
            options.Timescale = Timescale.ThirdsOfMonths;
            project.Save(dataDir + resultFile, options);
            // ExEnd:RenderXAMLWithOptions
        }
    }
RenderXAMLWithOptions