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() }));
TextBoxSetting
Options
Section titled βTextBoxSetting OptionsβProperty | Type | Details |
---|---|---|
x | uint | Textbox Top Left X |
y | uint | Textbox Top Left y |
height | uint | Texbox Total Height |
width | uint | Texbox Total Width |
horizontalAlignment | HorizontalAlignmentValues? | |
textBlocks | TextBlock[] | Text box content as parts to have different style setting |
shapeBackground | string? | Entire share background color |
TextBlock
Options
Section titled βTextBlock OptionsβfontFamily | string | This section font family |
fontSize | int | This section font size |
isBold | bool | This section font family |
isItalic | bool | This section font italic |
isUnderline | bool | This section font underline |
text | string | This section text value |
textBackground | string | This section text hightlight color |
textColor | string | This section text color |
hyperlinkProperties | HyperlinkProperties | Hyperlink properties for each text block |