PowerPoint.Shape

Description

A class for managing and editing PowerPoint shapes.

Properties

bold Gets/sets the font size of a textbox shape.
color Gets/sets the color of the text of a textbox shape.
fontSize Gets/sets the font size of a textbox shape.
position Gets/sets the position a shape.
size Gets/sets the size a shape.
text Gets/sets the text of a textbox shape.
type Returns the shapetype of the shape, an enumeration of PowerPoint.ShapeType.

Methods

delete Deletes the shape.
duplicate Duplicates the shape.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.bold

int bold

Description

Gets/sets the font size of a textbox shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addTextBox("New Text", Vec2(80, 80), Vec2(200, 50), 30, 0, Color.blue);
				presentation.slides[1].shapes[1].fontSize = 23.5;
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.color

Color color

Description

Gets/sets the color of the text of a textbox shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addTextBox("New Text", Vec2(80, 80), Vec2(200, 50), 30, 0, Color.blue);
				return presentation.slides[1].shapes[1].color;
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.fontSize

double fontSize

Description

Gets/sets the font size of a textbox shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addTextBox("New Text", Vec2(80, 80), Vec2(200, 50), 30, 0, Color.blue);
				pesentation.slides[1].shapes[1].fontSize = 23.5;
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.position

Vec2 position

Description

Gets/sets the position a shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addTextBox("New Text", Vec2(80, 80), Vec2(200, 50), 30, 0, Color.blue);
				return presentation.slides[1].shapes[1].position;
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.size

Vec2 size

Description

Gets/sets the size a shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addPicture(modeldir() + "\\SamplePicture.png", Vec2(80,80),Vec2(200,200));
				return presentation.slides[1].shapes[1].size;
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.text

string text

Description

Gets/sets the text of a textbox shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addTextBox("New Text", Vec2(80, 80), Vec2(200, 50), 30, 0, Color.blue);
				presentation.slides[1].shapes[1].text = "New Text Replaced";
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.type

int type

Description

Returns the shapetype of the shape, an enumeration of PowerPoint.ShapeType.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.open(modeldir() + "\\Presentation.pptx", 1);
				return presentation.slides[1].shapes[1].type;
			

Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.delete()

Description

Deletes the shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.open(modeldir() + "\\Presentation.pptx", 1);
				presentation.slides[1].shapes[1].delete();
			
Do no remove, this fixes the anchor on doc.flexsim.com

PowerPoint.Shape.duplicate()

PowerPoint.Shape duplicate( )

Description

Duplicates the shape.


				PowerPoint.Presentation presentation = PowerPoint.Presentation.create(1);
				presentation.addSlide(PowerPoint.Layout.blank);
				presentation.slides[1].addTextBox("New Text", Vec2(80, 80), Vec2(200, 50), 30, 0, Color.blue);
				presentation.slides[1].shapes[1].duplicate();