API Reference
Cmdlet
Add-OfficeVisioTextBox
Adds a text box to the current Visio page.
Remarks
Adds a text box to the current Visio page.
Examples
Add a diagram note.
PS>
New-OfficeVisio -Path .\Notes.vsdx {
VisioTextBox -Text 'Generated by PSWriteOffice' -X 1 -Y 1 -Width 3 -Height 0.4
}
Adds a plain text annotation to the active page.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Add-OfficeVisioTextBox [-FillColor <String>] [-Height <Double>] [-Key <String>] [-LineColor <String>] [-LineWeight <Nullable`1>] [-Name <String>] [-NameU <String>] [-Page <VisioPage>] -Text <String> [-Unit <Inches|Centimeters|Millimeters>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- FillColor String
- Fill color name or hex value.
- Height Double
- Text box height.
- Key String
- DSL key used by connector commands.
- LineColor String
- Line color name or hex value.
- LineWeight Nullable`1
- Line weight.
- Name String
- Optional shape name.
- NameU String
- Optional universal shape name.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- Text String
- Text placed inside the text box.
- Unit VisioMeasurementUnit
- Measurement unit for coordinates and dimensions.
- Possible values:
Inches,Centimeters,Millimeters - Width Double
- Text box width.
- X Double
- X coordinate of the text box origin.
- Y Double
- Y coordinate of the text box origin.
Outputs
OfficeIMO.Visio.VisioShape