Skip to content

Latest commit

 

History

History
231 lines (182 loc) · 4.5 KB

File metadata and controls

231 lines (182 loc) · 4.5 KB
external help file PSWriteOffice-help.xml
Module Name PSWriteOffice
online version https://github.com/EvotecIT/PSWriteOffice
schema 2.0.0

Set-OfficePowerPointLayoutPlaceholderTextMargins

SYNOPSIS

Sets layout placeholder text margins for a slide layout (points).

SYNTAX

__AllParameterSets

Set-OfficePowerPointLayoutPlaceholderTextMargins -Layout <int> -PlaceholderType <string> -Left <double> -Top <double> -Right <double> -Bottom <double> [-Presentation <PowerPointPresentation>] [-Master <int>] [-Index <uint>] [-CreateIfMissing] [-PassThru] [<CommonParameters>]

DESCRIPTION

Sets layout placeholder text margins for a slide layout (points).

EXAMPLES

EXAMPLE 1

PS>Set-OfficePowerPointLayoutPlaceholderTextMargins -Presentation $ppt -Master 0 -Layout 1 -PlaceholderType Title -Left 12 -Top 8 -Right 12 -Bottom 8

Updates the text margins on the layout placeholder.

EXAMPLE 2

PS>New-OfficePowerPoint -Path .\deck.pptx {
$layout = Get-OfficePowerPointLayout | Select-Object -First 1
Set-OfficePowerPointLayoutPlaceholderTextMargins -Master $layout.MasterIndex -Layout $layout.LayoutIndex -PlaceholderType Title -Left 12 -Top 8 -Right 12 -Bottom 8
}

Uses the DSL context to resolve the presentation.

PARAMETERS

-Bottom

Bottom margin in points.

Type: Double
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-CreateIfMissing

Create the placeholder if it is missing.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Index

Optional placeholder index.

Type: Nullable`1
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Layout

Layout index within the master.

Type: Int32
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Left

Left margin in points.

Type: Double
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Master

Slide master index.

Type: Int32
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-PassThru

Emit the placeholder textbox after update.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-PlaceholderType

Placeholder type to target.

Type: String
Parameter Sets: __AllParameterSets
Aliases: Type
Possible values: 

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Presentation

Presentation to update (optional inside DSL).

Type: PowerPointPresentation
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: False
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: True

-Right

Right margin in points.

Type: Double
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Top

Top margin in points.

Type: Double
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: 

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • OfficeIMO.PowerPoint.PowerPointPresentation

OUTPUTS

  • OfficeIMO.PowerPoint.PowerPointTextBox

RELATED LINKS

  • None