diff --git a/Word-to-PPTX-Conversion/Convert-Word-document-to-PPTX/.NET/Convert-Word-document-to-PPTX/Program.cs b/Word-to-PPTX-Conversion/Convert-Word-document-to-PPTX/.NET/Convert-Word-document-to-PPTX/Program.cs
index fb2f64d0..64e58453 100644
--- a/Word-to-PPTX-Conversion/Convert-Word-document-to-PPTX/.NET/Convert-Word-document-to-PPTX/Program.cs
+++ b/Word-to-PPTX-Conversion/Convert-Word-document-to-PPTX/.NET/Convert-Word-document-to-PPTX/Program.cs
@@ -27,21 +27,12 @@ static void Main(string[] args)
}
}
- ///
- /// Adds the text body items to the Presentation document
- ///
- ///
- private static void AddTextBodyItems(WTextBody docTextBody)
- {
- AddTextBodyItems(docTextBody, null);
- }
-
///
/// Iterates the text body items of Word document and creates slides and add textbox accordingly
///
///
///
- private static void AddTextBodyItems(WTextBody docTextBody, ICell powerPointTableCell)
+ private static void AddTextBodyItems(WTextBody docTextBody, ICell powerPointTableCell = null)
{
ISlide powerPointSlide = null;
IShape powerPointShape = null;
@@ -146,23 +137,13 @@ private static void ApplyListStyles(IParagraph powerPointParagraph)
powerPointParagraph.IndentLevelNumber = 1;
}
- ///
- /// Adds the paragraph items to the Presentation document
- ///
- ///
- ///
- private static void AddParagraphItems(WParagraph docParagraph, IParagraph powerPointParagraph)
- {
- AddParagraphItems(docParagraph, powerPointParagraph, null);
- }
-
///
/// Iterates the paragraph and adds the paragraph items to the Presentation document
///
///
///
///
- private static void AddParagraphItems(WParagraph docParagraph, IParagraph powerPointParagraph, ICell powerPointTableCell)
+ private static void AddParagraphItems(WParagraph docParagraph, IParagraph powerPointParagraph, ICell powerPointTableCell = null)
{
for (int i = 0; i < docParagraph.Items.Count; i++)
{