質問

だから私は標準のコンテンツエディターWebPartを持っています(MSContentEditor.dwp)。私が設定できるタイトル webPart.Title (MSDN).

コンテンツエディターのコンテンツを設定するプロパティが見つかりません。

基本的に、WebPartを公開ページ(完了)にプロビジョニングし、タイトルをSo Something(DONE)に設定し、デフォルトのコンテンツを設定します(これに固執します)。どんな助けも感謝しています。

役に立ちましたか?

解決

ContentEditorWebPart wp = ....

XmlDocument xDoc = new XmlDocument();
var contentRoot = xDoc.CreateElement("ContentRoot");
contentRoot.InnerText = "Your text here";
wp.Content = contentRoot

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.contenteditorwebpart.content.aspx

他のヒント

どうぞ :)

ContentEditorWebPart.Contentプロパティ

このプロパティが表示されない場合は、ContentEditorWebPartにWebPartをキャストする必要がある場合があります。

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top