Aspose.Slides.Examples.CSharp.Presentations.Opening.GetFileFormat.Run C# (CSharp) Méthode

Run() public static méthode

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

            IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(dataDir + "HelloWorld.pptx");

            switch (info.LoadFormat)
            {
                case LoadFormat.Pptx:
                    {
                        break;
                    }

                case LoadFormat.Unknown:
                    {
                        break;
                    }
            }
        }
    }
GetFileFormat