Skip to content

This content is for v4.x (Alpha). Switch to the Stable version.

Textbox Control to add and update Text Box

Slide slide = powerPoint.GetSlideByIndex(0);
shapes3[0].ReplaceTextBox(slide, new TextBox(new G.TextBoxSetting()
{
textBlocks = new List<G.TextBlock>(){
new(){
text = "Move Slide To ",
fontFamily = "Bernard MT Condensed"
},
new(){
text = "Prev",
fontSize = 25,
isBold = true,
textColor = "AAAAAA",
hyperlinkProperties = new(){
hyperlinkPropertyType = G.HyperlinkPropertyType.PREVIOUS_SLIDE,
}
}
}.ToArray()
}));
PropertyTypeDetails
xuintTextbox Top Left X
yuintTextbox Top Left y
heightuintTexbox Total Height
widthuintTexbox Total Width
horizontalAlignmentHorizontalAlignmentValues?
textBlocksTextBlock[]Text box content as parts to have different style setting
shapeBackgroundstring?Entire share background color
fontFamilystringThis section font family
fontSizeintThis section font size
isBoldboolThis section font family
isItalicboolThis section font italic
isUnderlineboolThis section font underline
textstringThis section text value
textBackgroundstringThis section text hightlight color
textColorstringThis section text color
hyperlinkPropertiesHyperlinkPropertiesHyperlink properties for each text block