Class TextExamples
- Namespace
- FileFormat.Slides.Examples
- Assembly
- FileFormat.Slides.Examples.dll
Provides C# code examples for creating, reading, and modifying Text segments or shapes in a Presentation using the FileFormat.Slides library.
public class TextExamples
- Inheritance
-
TextExamples
- Inherited Members
Constructors
TextExamples()
Initializes a new instance of the TextExamples class. Prepares the directory 'Presentations/New' for storing or loading PowerPoint(PPT or PPTX) presentations at the root of the project. If the directory doesn't exist, it is created. If it already exists, existing files are deleted, and the directory is cleaned up.
public TextExamples()
Methods
AddNewTextShapeExistingSlide(string, string)
Add text shape to an existing slide
public void AddNewTextShapeExistingSlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")
Parameters
CreateNewTextShapeInNewSlide(string, string)
This method adds text segment or shape in the silde of a new PowerPoint presentation.
public void CreateNewTextShapeInNewSlide(string documentDirectory = "../../../Presentations/New", string filename = "test.pptx")
Parameters
SetBackgroundColorOfTextShape(string, string)
This method Sets the background color of a text shape
public void SetBackgroundColorOfTextShape(string documentDirectory = "../../../Presentations/New", string filename = "test.pptx")
Parameters
SetFontFamilyofTextShape(string, string)
This method sets the font family of a text shape
public void SetFontFamilyofTextShape(string documentDirectory = "../../../Presentations/New", string filename = "test.pptx")
Parameters
SetFontSizeOfTextShape(string, string)
This method sets font size of the text
public void SetFontSizeOfTextShape(string documentDirectory = "../../../Presentations/New", string filename = "test.pptx")
Parameters
SetTextColorOfTextShape(string, string)
This method sets the text color of text shape
public void SetTextColorOfTextShape(string documentDirectory = "../../../Presentations/New", string filename = "test.pptx")