Skip to content

Commit 0a1dd4d

Browse files
Replace picture content control with chart
1 parent 944aa13 commit 0a1dd4d

File tree

1 file changed

+2
-2
lines changed
  • Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart

1 file changed

+2
-2
lines changed

Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
using (WordDocument document = new WordDocument(docStream, Syncfusion.DocIO.FormatType.Automatic))
1212
{
1313
string[] propertyNames = { "ContentControlProperties.Title", "ContentControlProperties.Type" };
14-
string[] propertyValues = { "Chart", "ContentControlType.Picture" };
14+
string[] propertyValues = { "Chart", "Picture" };
1515
// Find BlockContentControl by given properties
16-
BlockContentControl contentControl = document.FindItemByProperty(EntityType.BlockContentControl, "ContentControlProperties.Title", "Chart") as BlockContentControl;
16+
BlockContentControl contentControl = document.FindItemByProperties(EntityType.BlockContentControl, propertyNames, propertyValues) as BlockContentControl;
1717

1818
if (contentControl != null)
1919
{

0 commit comments

Comments
 (0)