Adding slide auto number to a text frame

Would anyone know what is the way to insert a slide auto number in a text frame in aspose slides.net? There seems to have been many versions of the API, and all the examples I can find on google are using classes and properties that do not exist in v16.5.0.

I am trying to do the equivalent of what I would do using the PowerPoint COM API this way:
For i = 5 To 16
Dim L As CustomLayout = P.Designs(1).SlideMaster.CustomLayouts(i)
Dim T = L.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal, 58.32158, 497.3246, 400, 10.90543)
T.TextFrame.TextRange.Paragraphs(1).Sentences(1).InsertSlideNumber()
T.TextFrame.TextRange.Paragraphs(1).Sentences(2).Text = " | Title | SubTitle"
T.Name = "PageNumberFooter"
Next

i.e. the textframe is at a custom location in the slide master on certain layout and will display as "5 | Title | SubTitle" for slide 5 (with auto numbering, I have no interest in hardcoded slide numbers).

thanks in advance

Hi Charles,

Thanks for your interest in Aspose.Slides.

I have observed your requirements and like to share that slide number property is in fact metadata property of presentation. I suggest you to please try using following sample code on your end to serve the purpose in this regard. I hope the shared information will be helpful. Please share if I may help you further in this regard.

Presentation pres = new Presentation();
pres.HeaderFooterManager.IsSlideNumberVisible = true;
pres.Save(path + “SlideNumber.pptx”, SaveFormat.Pptx);


Many Thanks,