Module Name | schema | applicable | online version | external help file | title |
---|---|---|---|---|---|
PnP.PowerShell |
2.0.0 |
SharePoint Online |
PnP.PowerShell.dll-Help.xml |
Add-PnPPageTextPart |
Adds a text element to a client-side page.
Add-PnPPageTextPart -Page <PagePipeBind> -Text <String> [-Order <Int32>] [-ImageUrl <String>] [-PageImageAlignment <PageImageAlignment>] [-ImageWidth <Int32>] [-ImageHeight <Int32>] [-Connection <PnPConnection>]
Add-PnPPageTextPart -Page <PagePipeBind> -Text <String> -Section <Int32> -Column <Int32> [-Order <Int32>] [-ImageUrl <String>]
[-PageImageAlignment <PageImageAlignment>] [-ImageWidth <Int32>] [-ImageHeight <Int32>] [-Connection <PnPConnection>]
Adds a new text element to a section on a client-side page.
Add-PnPPageTextPart -Page "MyPage" -Text "Hello World!"
Adds the text 'Hello World!' to the Page 'MyPage'
Add-PnPPageTextPart -Page "MyPage" -Text "Hello World!" -ImageUrl "/sites/contoso/SiteAssets/test.png"
Adds the text 'Hello World!' to the Page 'MyPage' with specified image as inline image.
Add-PnPPageTextPart -Page "MyPage" -Text "Hello World!" -ImageUrl "/sites/contoso/SiteAssets/test.png" -TextBeforeImage "Text before" -TextAfterImage "Text after"
Adds the text 'Hello World!' to the Page 'MyPage' with specified image as inline image with text specified before and after the inline image.
Sets the column where to insert the text control.
Type: Int32
Parameter Sets: Positioned
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the order of the text control. (Default = 1)
Type: Int32
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the page.
Type: PagePipeBind
Parameter Sets: (All)
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Sets the section where to insert the text control.
Type: Int32
Parameter Sets: Positioned
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the text to display in the text area.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the text to display before the inline image.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: 150
Accept pipeline input: False
Accept wildcard characters: False
Specifies the inline image to be added. Image will be added after the text content.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the inline image's alignment. Available values are Center, Left and Right.
Type: PageImageAlignment
Parameter Sets: (All)
Required: False
Position: Named
Default value: Center
Accept pipeline input: False
Accept wildcard characters: False
Specifies the width of the inline image.
Type: Int32
Parameter Sets: (All)
Required: False
Position: Named
Default value: 150
Accept pipeline input: False
Accept wildcard characters: False
Specifies the height of the inline image.
Type: Int32
Parameter Sets: (All)
Required: False
Position: Named
Default value: 150
Accept pipeline input: False
Accept wildcard characters: False
Specifies the text to display after the inline image.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: 150
Accept pipeline input: False
Accept wildcard characters: False
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False