📚
OpenXML-Office
v3.x (Discontinued)
v3.x (Discontinued)
  • Welcome
    • Getting Started
    • Introduction
    • Privacy Policy
    • License
  • Presentation
    • PowerPoint
    • Slide
    • Shape
    • Picture
    • Textbox
    • Table
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
      • Waterfall
  • Spreadsheet
    • Excel
    • Worksheet
    • Shape
    • Picture
    • Table
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
    • Style
    • Shared
  • Document
    • Word
    • Pages
    • Shape
    • Picture
    • Table
    • Chart
Powered by GitBook
On this page
  • TextBoxSetting Options
  • TextBlock Options

Was this helpful?

  1. Presentation

Textbox

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

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

Text box content as parts to have different style setting

shapeBackground

string?

Entire share background color

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

Hyperlink properties for each text block

PreviousPictureNextTable

Was this helpful?

[]

TextBlock
HyperlinkProperties