Skip to content

Are there a way to update Text WebParts in a page? #1356

Answered by jansenbe
mohammadamer asked this question in General
Discussion options

You must be logged in to vote

@mohammadamer : you can cast the control you need to IPageText and then set the Text property. This test (https://github.com/pnp/pnpcore/blob/dev/src/sdk/PnP.Core.Test/SharePoint/PagesTests.cs#L379-L415) shows that, but since it's a test it uses the internal only PageText, you need to use IPageText

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mohammadamer
Comment options

Answer selected by mohammadamer
Comment options

You must be logged in to vote
1 reply
@jansenbe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants