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(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).
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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.