API Reference
Cmdlet
Add-OfficeWordTextBox
Adds an OfficeIMO Word text box to the current Word DSL location.
Remarks
Adds an OfficeIMO Word text box to the current Word DSL location.
Examples
Add a positioned report callout.
PS>
New-OfficeWord -Path .\Report.docx {
WordTextBox -Text 'Executive summary' -WidthCentimeters 7 -HeightCentimeters 2 -HorizontalOffsetCentimeters 1.5 -VerticalOffsetCentimeters 1 -AutoFitToTextSize
}
Creates a native OfficeIMO Word text box and applies sizing/positioning through OfficeIMO's text-box API.
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-OfficeWordTextBox [-AutoFit <Nullable`1>] [-AutoFitToTextSize] [-HeightCentimeters <Nullable`1>] [-HorizontalAlignment <Nullable`1>] [-HorizontalOffsetCentimeters <Nullable`1>] [-HorizontalPositionRelativeFrom <Nullable`1>] [-PassThru] -Text <String> [-VerticalOffsetCentimeters <Nullable`1>] [-VerticalPositionRelativeFrom <Nullable`1>] [-WidthCentimeters <Nullable`1>] [-WrapText <InLineWithText>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- AutoFit Nullable`1
- Explicit OfficeIMO text-box autofit mode.
- AutoFitToTextSize SwitchParameter
- Resize the text box to fit its text.
- HeightCentimeters Nullable`1
- Height in centimeters.
- HorizontalAlignment Nullable`1
- Horizontal alignment for anchored text boxes.
- HorizontalOffsetCentimeters Nullable`1
- Horizontal offset in centimeters.
- HorizontalPositionRelativeFrom Nullable`1
- Horizontal relative position anchor.
- PassThru SwitchParameter
- Emit the created text box.
- Text String
- Text to place inside the text box.
- VerticalOffsetCentimeters Nullable`1
- Vertical offset in centimeters.
- VerticalPositionRelativeFrom Nullable`1
- Vertical relative position anchor.
- WidthCentimeters Nullable`1
- Width in centimeters.
- WrapText WrapTextImage
- Word text wrapping mode.
- Possible values:
InLineWithText,Square,Tight,Through,TopAndBottom,BehindText,InFrontOfText
Outputs
OfficeIMO.Word.WordTextBox